ipyparams icon indicating copy to clipboard operation
ipyparams copied to clipboard

JupyterLab: Prints warning and returns empty values

Open ociule opened this issue 6 years ago • 5 comments

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.

ociule avatar Jan 29 '20 15:01 ociule

ipyparams._ipython_support is True btw.

ociule avatar Jan 29 '20 16:01 ociule

Seems that ipyparams.raw_url returns empty as well.

HCharlie avatar Jun 26 '20 11:06 HCharlie

Jupyter Lab support would be really appreciated!

caglorithm avatar Jul 27 '20 16:07 caglorithm

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.

jeffyjefflabs avatar Sep 08 '20 21:09 jeffyjefflabs

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

connorferster avatar May 28 '21 20:05 connorferster