notebookJS icon indicating copy to clipboard operation
notebookJS copied to clipboard

error in jupyterlab(3.0)

Open wwj718 opened this issue 4 years ago • 5 comments

VM199:29 Error: Cannot find Jupyter/Colab namespace from javascript

wwj718 avatar May 27 '21 02:05 wwj718

Hi, can you please share some details about this error?

Did you import notebookJS from a Jupyter / Colab environment? If you import notebookJS from the terminal, this warning is expected.

Thanks!

jorgehpo avatar Jun 14 '21 17:06 jorgehpo

I'm actually having the same issue. AFAICT, Jupyter is not (no longer?) exposing the Jupyter namespace globally, which leads to this error when CommAPI's ctor is called. Which stands to reason that callbacks would fail if the Jupyter environment isn't exposing any callback API to JS code.

I'm new to Jupyter (trying to help my DS team get some interactive debug tooling built in js), so it's a bit hard to tell whether this is supposed to work. I see quite a few complaints online about various Jupyter-related js things failing because of a missing global (either Jupyter or IPython, in various cases). This includes some I think are related with matplotlyb no longer working interactively in notebooks, and the most common response seems to be that you should use its ipympl widget instead, which suggests that perhaps this callback method no longer works? (I'm on python 3.9).

Thanks in advance for any suggestions you can offer.

joelgwebber avatar Oct 19 '21 21:10 joelgwebber

To help clarify (I'm working with Joel on this, for context), we are getting this error in the browser's javascript console using Jupyter Lab 3.2.0 and I'm now not sure from your README that you actually support the modern Lab system vs. the legacy Notebook system. (Up to now I'd been assuming from the recency of your publication that you'd automatically be supporting Lab).

robclewley avatar Oct 19 '21 22:10 robclewley

Hi @robclewley @joelgwebber . I was not aware of this problem with Jupyter Lab. Thank you for pointing this out. I am not sure how to fix this issue, need to investigate further. Please let me know if you find anything out. In the meantime, I'll make it more clear in the README.

jorgehpo avatar Oct 26 '21 05:10 jorgehpo

Hi, the ff. example doesn't work in the Python extension for vs code (which includes jupyter): https://colab.research.google.com/drive/1g8WOn9oZ5G_3-Y8DYmpV1MIj59dnd81u

particle1331 avatar Aug 16 '22 14:08 particle1331