Getting 'ModuleNotFoundError: No module named 'ipywidgets'' in Sagemaker

Hey all,

I’m getting the following error in Jupyter when running the following as part of lesson 2; I tried installing ipywidgets via pip but no dice.

Any ideas folks?

ModuleNotFoundError: No module named ‘ipywidgets’

Yes, i got the same error. Would like someone can help.

Not sure if this is the ‘correct’ way of resolving this issue but I resolved the issue by opening terminal and activating the fastai envirionment and installing ipywidgets with pip.

cd SageMaker
source activate env/fastai

pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension

Hi Ash, thank you. I added !pip install ipywidgets into the notebook and it works. Looks like this notebook missed this package.

I don’t have a fastai environment. Would it be JupyterSystemEnv?

I don’t think so @matthewarthur. If you are using sage maker it should be in your SageMaker/env directory.