'No module named 'ipympl' ' Error when running the Cost Function notebook file locally

Week 1
Link for the Classroom item:
link here

I am seeing errors for not found files when running the first cell of this notebook locally (I am running them locally because I want to reuse this afterward, on other projects that I will make).

Here is the first code cell content:

import numpy as np
%matplotlib widget
import matplotlib.pyplot as plt
from lab_utils_uni import plt_intuition, plt_stationary, plt_update_onclick, soup_bowl
plt.style.use('./deeplearning.mplstyle')

Can someone help me to solve the errors, please?

1 Like

If you want to run locally, you need more than just the notebook file. Here’s a topic that explains how to download all the files associated with an assignment.

You’ll also need to install all the software packages that are referenced by the notebook. We don’t have documentation for how to do that, but that is a generic question and you can find lots of help on that type of topic on StackExchange and other sites.

One other more subtle point is that the courses were published at different times in the past, but the whole world of python packages evolves pretty quickly. There is no guarantee that everything stays consistent and will “just work” with whatever the very latest version of all the packages are.

1 Like

Thanks for the help! I will dig into that.

1 Like