Help needed running Module 2 Ungraded Lab

Hi everyone,

I am writing this because I am completely lost. This is my first time trying to set up these ungraded labs locally, and I’m confused about the next step.

I have successfully set up the virtual environment following the instructions. However, I am now looking at the "Chart generation " notebook in Module 2, and I have no idea what to do with the “Setup” section.

im stuck here :
Setup: Initialize environment and client

In this step, you import the key libraries that will support the workflow:

  • re: Python’s regular expression module, which you’ll use to extract snippets of code or structured text from the LLM’s output.

  • json: Provides functions to read and write JSON, useful for handling structured responses returned by the LLM.

  • utils: A custom helper module provided for this lab. It includes utility functions to work with the dataset, generate charts, and display results in a clean, readable format.

Any guidance for a beginner would be really appreciated!

Me too and sadly no replies yet. My suspicion is that we are supposed to go into our terminal and activate the Python venv then copy past stuff in? Would be nice if there was a bit more guidance. Also confusing that is seems the jupyter notebook can essential run the code in it??

hi @Maikuru

did you the requirements.txt file which mentions which libraries and their respective version need to be downloaded or present locally. you can find this file in the File==>open section

Looking again I see now that generating V1 also failed to execute the python

My local environment has nothing to do with it working in the notebook. The notebook is supposed to be self-contained and provide a python interpreter. How this doesn’t when everything is in the notebooks file system is beyond me.

what error are you getting? please post the screenshot of the complete error so we can find what is the issue running labs locally

Python error in the ode about not liking a ‘+’ operator but I have since moved on. Lab 2 works fine so it’s not me especially since lab 1 doesn’t have us edit anything

please post screenshot of the error

I copied the code locally , I am unable to find utils package.

You should be able to use the “File->Open” menu item, and download the file.

You’ll get a page that looks like this, and when you click on the checkbox, you’ll get a “Download” button in the page menu.

2 Likes