error in jupyterlab(3.0)
VM199:29 Error: Cannot find Jupyter/Colab namespace from javascript
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!
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.
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).
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.
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