MLS Course 1 Week 1 - Cost function-from lab_utils_uni import plt_intuition, plt_stationary, plt_update_onclick, soup_bowl

hello guys!

I have been trying to run the cost function lab in my jupyter environment and getting the error as per photo.
photo 1

So i ve been getting error out of these two lines
from lab_utils_uni import plt_intuition, plt_stationary, plt_update_onclick, soup_bowl
plt.style.use(‘./deeplearning.mplstyle’)

I also got a %matplotlib widget error which i fixed by adding extension (pip install ipympl)

I have downloaded from lab and uploaded all the relevant files in my jupyter environment.
Shouldn’t this be enough or have i missed something else?

Thanks!

Hi,

Downloading all the files is not enough. And, even if you install relevant libraries, there will be version compatibility issues. Check this for virtual environment in your local PC.

Best,
Saif.

I also encountered the same error when running the file on my personal Windows laptop, tried to fix the error as Safikhanengr said, but it didn’t work.

Maybe you could try Google Colab. It also has some compatibility issues but I can run most of the assignments on it. Check this.