Lab04 where is lab_utils_uni

from lab_utils_uni import plt_intuition, plt_stationary, plt_update_onclick, soup_bowl

In my understanding, lab_utils_unishould be a python file and we import functions from it. but where to find lab_utils_uni
plz help

Go to the Jupyter Notebook. Click on File → Open. You will see all the files there
OR
on the Top right of the notebook, click on “Lab Files”, you can see all the relevant files.

2 Likes

I am trying to run the code in my local Jupyter notebook. i have copied the files from the “Lab files” tab into my local folder from where i am running Jupyter.
image

with this i am getting the error at :slight_smile: “get_ipython().run_line_magic(‘matplotlib’, ‘widget’)”

“AttributeError: ‘NoneType’ object has no attribute ‘run_line_magic’”

Can anyone please help ?

i am able to get the code running,only feature which is not working is iam not able to move around the cost function graph aka the soup bowl…

Hey @thahura,
ipython is not installed in your local environment. Install the package using the commented line of code, and it should work. I hope this helps.

Regards,
Elemento

@Elemento
Hi, Thanks for taking a look into this issue.
I had installed ipython first (run line 19) and after that i commented it out.
after this also i got the mentioned error on run_line_magic.

But i am continuing as this error doesnt seem to be blocking , i am able to run rest of the notebook. only difference i see with my local notebook and the one in optional lab is that i am not able to move around the gradient graph .

Hey @thahura,
Can you please try to install another package, and then try running this code cell? This is an additional package that might help you run this code cell.

!pip install ipympl

I hope this helps.

Regards,
Elemento

@Elemento
Thanks !
After installing “!pip install ipympl”
its working fine.

1 Like