Closed xgdgsc closed 3 years ago
The extension hasn't been updated for JupyterLab 2.0 yet. An immediate workaround would be to downgrade to JupyterLab v1 series.
Hi! Is the latest workaround still to downgrade Jupyterlab to v1 series?
Yes.
I’m not sure how much has changed for extensions between 1 and 2 and haven’t had time to look at it yet unfortunately.
Hello, do you think this would work even if compatibility is disregarded? Many people probably need new jupyterlab for other python issues
Hi! Looking at the migration guide https://jupyterlab.readthedocs.io/en/stable/developer/extension_migration.html, I tried making the minimum number of changes needed for WebIO to run with JupyterLab 2.x. You can see them at https://github.com/JuliaGizmos/WebIO.jl/compare/master...lcontento:master. On my machine it appears basic functionality is restored, but maybe more work is still needed... Hope it may be useful (at least as a stopgap solution).
Great, perhaps we could expect a PR sometime soon?
Any chance the changes from @lcontento could be distilled into a PR and merged? We are also using this to make WebIO work on a recent jupyterlab installation in jupyterhub.
Any chance the changes from @lcontento could be distilled into a PR and merged? We are also using this to make WebIO work on a recent jupyterlab installation in jupyterhub.
I could try starting a PR with my changes, but I am not familiar enough with the code base to say whether additional changes need to be made. It would be best if after I start the PR one of the maintainers took over it.
Open a PR and I can try to find a few spare hours to look it over.
@lcontento what is the installation process to try out your changes?
@lcontento what is the installation process to try out your changes?
If I remember correctly it was quite straightforward. I don't think you need to install my version through the Julia package manager (the official package should work just fine, since I did not touch the Julia code). Just cloning my repository and running jupyter-labextension install /path/to/lcontento/WebIO/packages/jupyter-lab-provider
should be enough.
@lcontento
If I remember correctly it was quite straightforward. I don't think you need to install my version through the Julia package manager (the official package should work just fine, since I did not touch the Julia code). Just cloning my repository and running > jupyter-labextension install /path/to/lcontento/WebIO/packages/jupyter-lab-provider should be enough.
I got the following error
ValueError: "./WebIO.jl/packages/jupyter-lab-provider" is not a valid extension: Missing extension module "dist/labextension.js"
I got the following error
ValueError: "./WebIO.jl/packages/jupyter-lab-provider" is not a valid extension: Missing extension module "dist/labextension.js"
I thought that this issue would have been closed after #430 was merged. I have not been using WebIO in a while, maybe something has changed in the extension format for the 2. series (or maybe my migration was not perfect in the beginning). I am sorry, but at the moment I don't really have the extra time to look into this. And anyway JupyterLab 3 is already out, so a new migration will be in order soon I suppose...
Thank you for the fast response! Yes, indeed I have Jupyterlab 3.... no wonder :-)
Happy to help get any stuff up on jupyter lab 3, if my complete lack of julia knowledge isn't too big a hindrance. It's hopefully a small json change, and cutting a new release, but then will not require a julia user to run (or even need) nodejs stuff after installing the extension, much like classic notebook extensions.
If there are other extensions that depend on this one through the jupyterlab side, it's slightly more complicated, but again hopefully just json changes.
There is a new issue open... https://github.com/JuliaGizmos/WebIO.jl/issues/442
@Krisselack are you using dev=true
with install_juypter_labextension
? I was getting the same "Missing extension module" error as well when doing that, but it worked without that on jupyterlab 2.2.6.
Thank you, I tried that with the following result:
An error occured. ValueError: "/opt/julia/packages/WebIO/Fy9h1/packages/jupyter-lab-provider" is not a valid extension: Missing extension module "dist/labextension.js"
The bug
install_jupyter_labextension() fails
Context
Info: