When using jupyter_server + nbclassic, When I open the notebook in my browser, I get the following error message and collapsible headings does not work. (Triangles at headings are not displayed.)
main.js?v=20230603045922:1076 [collapsible_headings] error: TypeError: Cannot read properties of undefined (reading 'split')
at patch_Tooltip (main.js?v=20230603045922:598:73)
Steps to Reproduce
- Build and run Dockerfile based on docker-stacks or launch the jupyter notebook using MyBinder: https://mybinder.org/v2/gist/yacchin1205/156752d2a08004026f0b10c3a1ff472b/HEAD?urlpath=tree
- Once the jupyter notebook server is open, Create the new notebook
- Open the notebook
- Open your browser's developer tools and you will find the error log above and that collapsible headings does not work.
Cause of this error
This error occurs in the following code.
|
if (Number(((sys_info) ? sys_info.notebook_version : Jupyter.version).split(".")[0]) >= 5) { |
The code expects the global variable sys_info to have a notebook_version, but the combination of jupyter_server and nbclassic seems to provide a sys_info without a notebook_version.
Also, nbclassic seems to give 1.0.0 as the Jupyter.version, so we will need to consider that.
https://github.com/jupyter/nbclassic/blob/b3692e330e7452fdb3aef7b53abe51ef22c2cfc5/nbclassic/static/base/js/namespace.js#L76
When using jupyter_server + nbclassic, When I open the notebook in my browser, I get the following error message and collapsible headings does not work. (Triangles at headings are not displayed.)
Steps to Reproduce
Cause of this error
This error occurs in the following code.
jupyter_contrib_nbextensions/src/jupyter_contrib_nbextensions/nbextensions/collapsible_headings/main.js
Line 598 in 374defd
The code expects the global variable
sys_infoto have anotebook_version, but the combination of jupyter_server and nbclassic seems to provide asys_infowithout anotebook_version.Also, nbclassic seems to give
1.0.0as theJupyter.version, so we will need to consider that.https://github.com/jupyter/nbclassic/blob/b3692e330e7452fdb3aef7b53abe51ef22c2cfc5/nbclassic/static/base/js/namespace.js#L76