Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyterlab can't see WebIO extension even though it's installed via pip #509

Open
ajwheeler opened this issue Feb 21, 2023 · 5 comments
Open

Comments

@ajwheeler
Copy link

When I install the webio jupyter extension, everything seems to work:

$ python3 -m pip install --force webio_jupyter_extension

Collecting webio_jupyter_extension
  Using cached webio_jupyter_extension-0.1.0-py3-none-any.whl (219 kB)
Installing collected packages: webio_jupyter_extension
  Attempting uninstall: webio_jupyter_extension
    Found existing installation: webio-jupyter-extension 0.1.0
    Uninstalling webio-jupyter-extension-0.1.0:
      Successfully uninstalled webio-jupyter-extension-0.1.0
Successfully installed webio_jupyter_extension-0.1.0

But it doesn't show up in the list of extensions:

$ python3 -m jupyter labextension list
JupyterLab v3.6.1
Other labextensions (built into JupyterLab)
   app dir: /Users/wheeler.883/brew/Cellar/[email protected]/3.10.9/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab
        @axlair/jupyterlab_vim v0.15.1 enabled OK
        jupyterlab-plotly v5.13.0 enabled OK

This isn't an issue with user vs global installs:

$ pip3 show jupyterlab | grep -i location
Location: /Users/wheeler.883/brew/lib/python3.10/site-packages
$ pip3 show webio_jupyter_extension | grep -i location
Location: /Users/wheeler.883/brew/lib/python3.10/site-packages

As far as I've been able to tell, this isn't a duplicate issue. I suspect I'm doing something stupid, but I can't figure out what. Any ideas?

@paulnakroshis
Copy link

I have the same issue. WebIO is installed, but I cannot get it to work on julia 1.9.0-rc2

@gganapat
Copy link

Same issue here. Even went through the process as mentioned using venv

python3 -m venv venv

. venv/bin/active

pip install notebook jupyterlab webio_jupyter_extension

Locations

pip3 show jupyterlab | grep -i location
Location: /Users/gani/Desktop/3c3bc877ab1b5096232586cfbba0ef8b-8b6f0a4221066849f2c54ac28ce422c68796340e/venv/lib/python3.10/site-packages

pip3 show webio_jupyter_extension | grep -i location
Location: /Users/gani/Desktop/3c3bc877ab1b5096232586cfbba0ef8b-8b6f0a4221066849f2c54ac28ce422c68796340e/venv/lib/python3.10/site-packages

In Jupyter lab

The WebIO Jupyter extension was not detected. See the WebIO Jupyter integration documentation for more information.

@wallscheid
Copy link

Is there any progress in this matter? Facing the same issue using Julia 1.9.3.

@jlumpe
Copy link
Contributor

jlumpe commented Apr 18, 2024

Same issue with:

  • Brand new Conda environment with only jupyterlab (3.6.7) jupyterlab_vim, and webio-jupyter-extension (0.1.0).
  • Brand new Julia 1.10.2 installation with only IJulia (1.24.2), WebIO (0.8.21), PlotlyJS (v0.18.13).

I see the following when starting Jupyter lab:

[I 2024-04-17 16:28:39.428 ServerApp] webio_jupyter_extension.serverextension | extension was successfully linked.

which suggests it should be working. I also see

WebIO is registering SystemJS window global.

in the Chrome development console. However I still get the "WebIO not detected" message. It is however working in the "Classic Notebook" view.

@jlumpe
Copy link
Contributor

jlumpe commented Apr 18, 2024

This might be more relevant in the PlotlyJS-specific issue, but I'm putting it here after my previous comment:

After much trial and error I have figured out how to get this working reliably.

  • Made sure to install jupyterlab with pip, not conda. The WebIO troubleshooting page emphasizes that it and webio_jupyter_extension need to be in the same place.
  • Made sure the server worked with Plotly in a Python kernel before trying to make it work in Julia:
    • Followed Plotly's getting started page, in the "JupyterLab Support" it mentions to install ipywidgets>=7.6 in addition to Jupyter lab.
    • Instead of using jupyter labextension install jupyterlab-plotly (which is deprecated for Jupyter Lab 3), installed the plotly package with pip in the jupyter lab environment. This installs the jupyterlab-plotly extension correctly itself.
  • Used Python 3.11 instead of 3.12 due to errors building the wheel for pyzmq with pip (jupyterlab dependency, unrelated to WebIO).

The following creates the conda env for the Jupyter Lab server that works for me:

conda create -n jupyterlab3 python=3.11
conda activate jupyterlab3
pip install 'jupyterlab>=3,<4' 'ipywidgets>=7.6' plotly webio_jupyter_extension

Installing the plotly Python package in the same environment as Jupyter Lab appears to be critical, repeating the same steps without that gives me the "WebIO not detected" message when using PlotlyJS in a Julia kernel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants