The widgets package is an upgrade to the standard Jupyter installation. You can update the widgets package using this command:
pip install ipywidgets
Note that, if ipywidgets
is already installed on your machine you may need to use this command for the upgrade to take effect:
pip install -upgrade ipywidgets
Once complete, you must then upgrade your Jupyter installation using this command:
jupyter nbextension enable -py widgetsnbextension
If you do not install the package and the upgrade, then when you run your widgets script you will get a warning message in the display—The installed widget JavaScript is the wrong version: