Open manugv opened 1 year ago
Same issue here. Plotly works in notebook interface, but not Jupyterlab :-(
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 ).
Note: https://github.com/JuliaGizmos/WebIO.jl/issues/495#issuecomment-1301600148 seems to provide the solution to this (at least for plotly).
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.
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?