JupyterLab: Prints warning and returns empty values
I would have loved to use ipyparams to get the current notebook name.
However, in jupyter lab, it doesn't work:
>>> import ipyparams
Javascript Error: Jupyter is not defined
>>> ipyparams.notebook_name
''
Lab uses completely different js from notebook, that's surely why.
ipyparams._ipython_support is True btw.
Seems that ipyparams.raw_url returns empty as well.
Jupyter Lab support would be really appreciated!
I think due to the javascript changes in Lab, this sort of thing would have to be implemented as a Lab extension. I came across this one that does something similar.
I have found that I need to run this in a Jupyter Hub environment for ipyparams to work. I am using it successfully in Jupyter Lab v3 but have encountered a similar bug where ipyparams sometimes won't work depending on how the notebook is run. See #2