Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I asked this question on the ipywidgets github page and was able to solve this issue.

In short, as explained to me on github, the version of ipywidgets that comes installed with SageMath 8.1 (version 6.0.0) is too old to interface with the widgetsnbextension that anaconda jupyter was using. The solution was to upgrade SageMath's ipywidgets package.

I first had to install ssl in sage first, which I did by following the instructions in this thread. I ran the following commands in order: sage -i openssl sage -f python2 sage -i pyopenssl

After about 2 hours of rebuilding, this step was complete and then I ran the following pip command to upgrade ipywidgets and all of its dependencies for Sage: sage -pip install --upgrade ipywidgets

This completed successfully, so I did some testing and ipywidgets (and interact) elements now work perfectly in my anaconda jupyter notebook when I use the SageMath kernel.

I asked this question on the ipywidgets github page and was able to solve this issue.

In short, as explained to me on github, the version of ipywidgets that comes installed with SageMath 8.1 (version 6.0.0) is too old to interface with the widgetsnbextension that anaconda jupyter was using. The solution was to upgrade SageMath's ipywidgets package.

I first had to install ssl in sage first, which I did by following the instructions in this thread. I ran the following commands in order: order:

sage -i openssl sage -f python2 sage -i pyopenssl

After about 2 hours of rebuilding, this step was complete and then I ran the following pip command to upgrade ipywidgets and all of its dependencies for Sage: sage -pip install --upgrade ipywidgets

This completed successfully, so I did some testing and ipywidgets (and interact) elements now work perfectly in my anaconda jupyter notebook when I use the SageMath kernel.

I asked this question on the ipywidgets github page and was able to solve this issue.

In short, as explained to me on github, the version of ipywidgets that comes installed with SageMath 8.1 (version 6.0.0) is too old to interface with the widgetsnbextension that anaconda jupyter was using. The solution was to upgrade SageMath's ipywidgets package.

I first had to install ssl in sage first, which I did by following the instructions in this thread. I ran the following commands in order:

sage -i openssl openssl

sage -f python2 python2

sage -i pyopenssl

After about 2 hours of rebuilding, this step was complete and then I ran the following pip command to upgrade ipywidgets and all of its dependencies for Sage: sage -pip install --upgrade ipywidgets

This completed successfully, so I did some testing and ipywidgets (and interact) elements now work perfectly in my anaconda jupyter notebook when I use the SageMath kernel.

I asked this question on the ipywidgets github page and was able to solve this issue.

In short, as explained to me on github, the version of ipywidgets that comes installed with SageMath 8.1 (version 6.0.0) is too old to interface with the widgetsnbextension that anaconda jupyter was using. The solution was to upgrade SageMath's ipywidgets package.

I first had to install ssl in sage first, which I did by following the instructions in this thread. I ran the following commands in order:

sage -i openssl

sage -f python2

sage -i pyopenssl

After about 2 hours of rebuilding, this step was complete and then I ran the following pip command to upgrade ipywidgets and all of its dependencies for Sage: sage -pip install --upgrade ipywidgets

This completed successfully, so I did some testing and ipywidgets (and interact) elements now work perfectly in my anaconda jupyter notebook when I use the SageMath kernel.

kernel.

They also work when I use the SageMath kernel in jupyterlab as well.