Issue
When you try to access ipywidgets from Jupyter Notebook in AEN:
from ipywidgets import *
IntSlider()
You may see the following error:
Widget Javascript not detected. It may not be installed or enabled properly.
Cause
There is a mismatch in the widgetsnbextension version shipped with the compute.
Solution
It is a known issue in AEN 4.2.x.
To fix this issue, run the following command from your AEN server:
sudo -u aen_admin /opt/wakari/anaconda/bin/conda install -p /opt/wakari/wakari-compute/ widgetsnbextension=2
Replace /<aen_admin
> with your AEN account.
Or run the following command from your AEN server:
cd /opt/wakari/wakari-compute
which jupyter
/opt/wakari/anaconda/bin/jupyter
jupyter nbextension enable --py --sys-prefix widgetsnbextension
You will see the following result:
Enabling notebook extension jupyter-js-widgets/extension...
- Validating: OK