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

Julia plotly works on jupyter-notebook but not on jupyter-lab #510

Open
manugv opened this issue Feb 21, 2023 · 4 comments
Open

Julia plotly works on jupyter-notebook but not on jupyter-lab #510

manugv opened this issue Feb 21, 2023 · 4 comments

Comments

@manugv
Copy link

manugv commented Feb 21, 2023

I see that webio_jupyter_extension has been installed properly according to this page https://juliagizmos.github.io/WebIO.jl/latest/providers/ijulia/.

Plotly plot using julia works on jupyter-notebook fantastic without any issues. However when I run the same code on jupyterlab, it says "WebIO not detected."

When running jupyter-lab, I see that it loads. And is also in the extension list (see below)
[I 2023-02-22 00:00:57.697 ServerApp] webio_jupyter_extension.serverextension | extension was successfully linked.
I am not able to understand what the problem is.

JupyterLab v3.6.1
/home/manugv/pythonenv/base/share/jupyter/labextensions
webio-jupyterlab-provider v0.1.0 enabled OK (python, webio_jupyter_extension)
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)

Jupyter-lab v3.6.1
webio-jupyter-extension v0.1.0
julia v1.8.5

Is there a reason why it works on notebook and not on jupyterlab? OR am I missing something?

@paulnakroshis
Copy link

Same issue here. Plotly works in notebook interface, but not Jupyterlab :-(

@aoanla
Copy link

aoanla commented Jun 11, 2023

Not sure that this will help, given there's no replies on this issue but: same here with julia 1.9.0 :

jupyter labextension list
JupyterLab v3.4.4
/home/xxx/miniconda3/share/jupyter/labextensions
webio-jupyterlab-provider v0.1.0 enabled OK (python, webio_jupyter_extension)
jupyter-matplotlib v0.11.2 enabled OK
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
@jupyter-widgets/jupyterlab-manager v3.1.1 enabled OK (python, jupyterlab_widgets)

when loading jupyter-lab I have

webio_jupyter_extension.serverextension | extension was successfully loaded

and yet I get the "WebIO not detected" error when I try to do anything that uses in jupyter-lab (the same notebook works perfectly in jupyter-notebook ).

@aoanla
Copy link

aoanla commented Jun 11, 2023

Note: #495 (comment) seems to provide the solution to this (at least for plotly).

@jlumpe
Copy link
Contributor

jlumpe commented Apr 18, 2024

After a ton of messing around I was finally able to get this working reliably. The key for me was to install the plotly Python package in the same environment as jupyterlab (using pip), which will install the jupyterlab-plotly extension properly.

In jupyterlab v3 the jupyter labextension install command is deprecated and the preferred way of installing extensions is as part of a pip/conda package. I posted are more detailed comment in another issue.

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

4 participants