Opened 7 years ago

Closed 6 years ago

#1965 closed defect (fixed)

ipywidgets unresolved?

Reported by: darkblueb Owned by: live-demo@…
Priority: major Milestone: OSGeoLive11.0
Component: OSGeoLive Keywords: jupyter, python
Cc:

Description

the current collection of components for ipython and Jupyter is a mix of newer and older.

Therefore, not all the features of Jupyter Notebook interaction are expected to work perfectly. Notebook interaction is (mostly) replaced by JupyterLab in the future.

But what we ship should be consistant. This test is failing.

from ipywidgets import IntSlider
from IPython.display import display
slider = IntSlider(min=1, max=10)
display(slider)
 -
Widget Javascript not detected.  It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension"

Change history (7)

comment:1 by kalxas, 7 years ago

I think "jupyter nbextension" has been replaced by "jupyter-nbextension" in current version

comment:2 by darkblueb, 6 years ago

12dev alpha1

available as python-ipywidgets

Last edited 6 years ago by darkblueb (previous) (diff)

comment:3 by darkblueb, 6 years ago

user@osgeolive:~/jupyter$ sudo apt install python-ipywidgets
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  jupyter-nbextension-jupyter-js-widgets python-nbformat
Suggested packages:
  python3-ipywidgets python-ipywidgets-doc
The following NEW packages will be installed:
  jupyter-nbextension-jupyter-js-widgets python-ipywidgets python-nbformat
0 upgraded, 3 newly installed, 0 to remove and 37 not upgraded.
Need to get 269 kB of archives.
After this operation, 1630 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu bionic/universe amd64 jupyter-nbextension-jupyter-js-widgets all 6.0.0-2 [209 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 python-nbformat all 4.4.0-1 [28.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/universe amd64 python-ipywidgets all 6.0.0-2 [30.9 kB]
Fetched 269 kB in 1s (196 kB/s)            
Selecting previously unselected package jupyter-nbextension-jupyter-js-widgets.
(Reading database ... 234671 files and directories currently installed.)
Preparing to unpack .../jupyter-nbextension-jupyter-js-widgets_6.0.0-2_all.deb ...
Unpacking jupyter-nbextension-jupyter-js-widgets (6.0.0-2) ...
Selecting previously unselected package python-nbformat.
Preparing to unpack .../python-nbformat_4.4.0-1_all.deb ...
Unpacking python-nbformat (4.4.0-1) ...
Selecting previously unselected package python-ipywidgets.
Preparing to unpack .../python-ipywidgets_6.0.0-2_all.deb ...
Unpacking python-ipywidgets (6.0.0-2) ...
Setting up jupyter-nbextension-jupyter-js-widgets (6.0.0-2) ...
/usr/lib/python3.6/runpy.py:125: RuntimeWarning: 'notebook.nbextensions' found in sys.modules after import of package 'notebook', but prior to execution of 'notebook.nbextensions'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
Enabling notebook extension jupyter-js-widgets/extension...
      - Validating: OK
Setting up python-nbformat (4.4.0-1) ...
Setting up python-ipywidgets (6.0.0-2) ...

comment:6 by darkblueb, 6 years ago

tested under Python2 and Jupyter; working now

comment:7 by darkblueb, 6 years ago

Resolution: fixed
Status: newclosed

fixed in branch notebooktest

Note: See TracTickets for help on using tickets.