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)
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.
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.
https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/374defd124b636e3337ef8e6249f3c67da6982b8/src/jupyter_contrib_nbextensions/nbextensions/collapsible_headings/main.js#L598
The code expects the global variable
sys_info
to have anotebook_version
, but the combination of jupyter_server and nbclassic seems to provide asys_info
without anotebook_version
.Also, nbclassic seems to give
1.0.0
as theJupyter.version
, so we will need to consider that.https://github.com/jupyter/nbclassic/blob/b3692e330e7452fdb3aef7b53abe51ef22c2cfc5/nbclassic/static/base/js/namespace.js#L76