Hello,
A ROOT notebook that works fine in the classic Jupyter Notebook environment does not seem to output the visualization correctly in the Jupyterlab environment. I get the following console output:
Activating jupyter-offlinenotebook JupyterLab extension
offlinenotebook.js:14 offline-notebook repoid: https://github.com/BioDynaMo/binder-demo
offlinenotebook.js:20 offline-notebook repoLabel: GitHub
offlinenotebook.js:22 offline-notebook binderRefUrl: https://github.com/BioDynaMo/binder-demo/tree/86d29d5bbc9910389695f204d2ea419618db97be
offlinenotebook.js:24 offline-notebook binderPersistentUrl: https://gesis.mybinder.org/binder/v2/gh/BioDynaMo/binder-demo/86d29d5bbc9910389695f204d2ea419618db97be
2VM129:2 Uncaught ReferenceError: requirejs is not defined
at <anonymous>:2:2
at t.attachWidget (index.es6.js:2758)
at t.insertWidget (index.es6.js:2661)
at y._insertOutput (widget.js:396)
at y.onModelChanged (widget.js:216)
at m (index.es6.js:459)
at Object.c [as emit] (index.es6.js:416)
at e.emit (index.es6.js:99)
at c._onListChanged (model.js:231)
at m (index.es6.js:459)
VM131:2 Uncaught ReferenceError: requirejs is not defined
at <anonymous>:2:2
at t.attachWidget (index.es6.js:2758)
at t.insertWidget (index.es6.js:2661)
at j._insertCell (widget.js:371)
at widget.js:312
at c (index.es6.js:1561)
at j._onCellsChanged (widget.js:311)
at m (index.es6.js:459)
at Object.c [as emit] (index.es6.js:416)
at e.emit (index.es6.js:99)
3default.js:997 Exception opening new comm
_handleCommOpen @ default.js:997
VM132:2 Uncaught ReferenceError: requirejs is not defined
at <anonymous>:2:2
at t.attachWidget (index.es6.js:2758)
at t.insertWidget (index.es6.js:2661)
at t.addWidget (index.es6.js:2630)
at n.t.addWidget (index.es6.js:3426)
at index.js:1964
I found that a summer student worked on this, and mentioned he fixed this issue: https://cds.cern.ch/record/2687923. I saw that his pull request was merged upstream, but the error unfortunately is still there.
Here’s the link to the failing Jupyterlab notebook: https://mybinder.org/v2/gh/BioDynaMo/binder-demo/master?urlpath=lab/tree/cell_division.ipynb
Btw, I also tried it locally, and it gives the same error. I also tried installing requirejs through npm install -g requirejs
, but no succes.
@linev, sorry to ping you again, but do you have any suggestions?
Cheers,
Ahmad
ROOT Version: 6.18.04
Platform: Ubuntu 20.04