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


(Ash Smith) #1

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?

Error
ModuleNotFoundError: No module named ‘ipywidgets’


(Li Ma) #2

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


(Ash Smith) #3

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

(Li Ma) #4

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


(Matthew Arthur) #5

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


(Ash Smith) #6

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