Setup: Initialize environment and client - WHAT ENVIRONMENT?

I may have missed something but what environment is this asking me to set up?

I’m in M2 Agentic AI - Chart Generation

I think it may be something like Claude Code or Codex. I would really appreciate someone pointing me in the right direction.

are you mentioning about ungraded lab Chart Generation?

you need to run down the code cell mentioned with header #Standard library imports which will help you further down to run your code successfully.

I hope you have done basic python coding specialisation.

Hey @Deepti_Prasad … yes.

did you run down the code cell containing standard library imports?

I don’t even know what that means … may be a bit in over my head. I’ll just do the videos for now.

Can I know do you know python coding? or to write codes?

set up environment means, installing basic libraries or modules from which different functional recall codes are executed, and this labs all codes are already provided. Learners only need to connect to the kernel by clicking on Not Trusted option which turns into Trusted once your notebook is connected with the kernel. Next choose cell option ==> Run all, so all code cells are run down.

Thanks @Deepti_Prasad … that was what I was missing. For anyone else wrestling with this, I documented the “solution” (i.e., what I did not understand)

I’m not sure where (if?) I missed it, but I had no idea

  1. I had to click on the “Not Trusted” button
  2. That the page (I thought was just instructions) IS the environment also

SOLUTION

So, TIL:

  1. What looked like a set of instructions was ALSO the environment itself.
  2. To get the environment to connect to the resources noted in step 2 (and the rest of the exercise) you need to click on the “Not Trusted” button in the top right (Image 1 below, but it now says “Trusted” b/c I clicked it).
  3. You go to the first code box and click into it. It’ll get a green box around it (Image 2 and Image 3 below)
  4. Go to the top of the page just under the menus and click “Run” (Image 4) It will run. You won’t actually notice anything until you go to the next code box which loads the database.

Image 1


Image 2 (what it looks like without the cursor inserted)


Image 3 (what it looks like with the cursor inserted)


Image 4

1 Like

I sincerely advise you to take AI for python beginners if you are finding instructions and code writing too difficult, but in case you are encountering any error, feel free to raise query here in discourse forum.

Keep learning!!!

Regards;

DP

2 Likes