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

"jupyter labextension list" report issue for JupyterLab 4.0.2 #1114

Closed
tarrade opened this issue Aug 2, 2023 · 3 comments · Fixed by #1140
Closed

"jupyter labextension list" report issue for JupyterLab 4.0.2 #1114

tarrade opened this issue Aug 2, 2023 · 3 comments · Fixed by #1140

Comments

@tarrade
Copy link

tarrade commented Aug 2, 2023

Great tool and congratulation for making working with JupyterLab 4.0

I am a bit confuse about the summary of the following command:

> jupyter labextension list  

JupyterLab v4.0.2
/Users/tarrade/anaconda-release/conda-env/jupyter-notebook/share/jupyter/labextensions
        jupyterlab-jupytext v1.3.9 enabled  X (python, jupytext)
        jupyterlab_pygments v0.2.2 enabled  X (python, jupyterlab_pygments)
        nbdime-jupyterlab v2.2.0 enabled  X
        jupyter-matplotlib v0.11.3 enabled OK
        jupyter-leaflet v0.17.3 enabled OK
        @jupyterlab/git v0.41.0 enabled  X (python, jupyterlab-git)
        @jupyter-widgets/jupyterlab-manager v5.0.8 enabled OK (python, jupyterlab_widgets)


   The following extensions are outdated:
        jupyterlab-jupytext
        jupyterlab_pygments
        nbdime-jupyterlab
        @jupyterlab/git
        
   Consider running "jupyter labextension update --all" to check for updates.

Other labextensions (built into JupyterLab)
   app dir: /Users/tarrade/anaconda-release/conda-env/jupyter-notebook/share/jupyter/lab

> jupyter labextension update --all
(Deprecated) Updating extensions with the jupyter labextension update command is now deprecated and will be removed in a future major version of JupyterLab.

Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages

I am just installing jupytext=1.15.0 using conda. Everything seems to works fine but I am normally running jupyter labextension list to see if there is not conflict:

  • It is unclear with JupyterLab 4.0 what jupyterlab-jupytext v1.3.9 is bringing (there was explanation in the old documentation)
  • It is still needed ?
  • is it really incompatible ? or should I ignore this output for jupytex
@mwouts
Copy link
Owner

mwouts commented Aug 6, 2023

Hello @tarrade , thank you for reporting this.

I am not sure what outdated means here. It might well be that we build the jupyterlab extension for Jupyter with JupyterLab 3.0. There are two reasons for this: 1) we have not been able to port the extension to the new built system yet, and 2) thanks to this we have been able to deliver an extension that works for both JupyterLab 3 and 4.

The extension brings the 'pair notebook with' commands in Jupyter Lab, see https://jupytext.readthedocs.io/en/latest/install.html#jupytext-commands-in-jupyterlab, plus a few other functionalities like let the user open text notebooks by default.

It would make sense to port the extension to the new built system (please let this issue open!), but this might take us more time.

@tarrade
Copy link
Author

tarrade commented Oct 26, 2023

Hi @mwouts,

great and thanks for effort. While I see in the main branch Publish jupyterlab-jupytext==1.4.0, I don't see any releases 1.4.0 in github, pypi, conda or npm. I didn't see PR pending regarding a new release.

sorry if I miss some communication about this topic.

Thanks

@mwouts
Copy link
Owner

mwouts commented Oct 26, 2023

Hi @tarrade , you're correct we have not released yet the next version of Jupytext that will include the updated extension for Jupyter Lab 4. It will probably take us one/two/... more weeks to prepare the next release.

In the meantime, if you really want to get rid of the warning you can try either to install the current development version (see https://jupytext.readthedocs.io/en/latest/developing.html#how-to-test-development-versions-from-github), or installing just the extension from npm (https://www.npmjs.com/package/jupyterlab-jupytext/v/1.4.0, it's not the last version because shortly after releasing that one I did release 1.3.11 which is the last version compatible with JLab 3).

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