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-sos and transient-display-data does not yet support the current version of JupyterLab #65

Open
melyym opened this issue Jun 15, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@melyym
Copy link

melyym commented Jun 15, 2023

Hello,

I hope I open this issue in the good way.

I try to work with SoS notebooks on Jupyterlab.
The problem is that it seems that jupyterlab and transient-display-data extensions does not support the actual version of Jupyterlab, and I think this explains why I can't have the dropdown menus on code cells (I have them with the classic Jupyter Notebook).

I can add the message that comes when I try to install the extensions the old way with de jupyter commands. I use mambaforge and mamba.

For transient-display-data extension :

(thesis) C:\WINDOWS\system32>jupyter labextension install transient-display-data
←[33m(Deprecated) Installing extensions with the jupyter labextension install 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 ←[0m
C:\Users\melan\mambaforge\envs\thesis\Lib\site-packages\jupyterlab\debuglog.py:56: UserWarning: An error occurred.
  warnings.warn("An error occurred.")
C:\Users\melan\mambaforge\envs\thesis\Lib\site-packages\jupyterlab\debuglog.py:57: UserWarning: ValueError: The extension "transient-display-data" does not yet support the current version of JupyterLab.


Conflicting Dependencies:
JupyterLab                Extension      Package
>=4.0.2 <4.1.0            >=3.4.0 <4.0.0 @jupyterlab/application
>=4.1.2 <4.2.0            >=3.4.0 <4.0.0 @jupyterlab/apputils
>=4.0.2 <4.1.0            >=3.4.0 <4.0.0 @jupyterlab/codeeditor
>=4.0.2 <4.1.0            >=3.4.0 <4.0.0 @jupyterlab/console
>=6.0.2 <6.1.0            >=5.0.1 <6.0.0 @jupyterlab/coreutils
>=4.0.2 <4.1.0            >=3.0.3 <4.0.0 @jupyterlab/filebrowser
>=4.0.2 <4.1.0            >=3.4.0 <4.0.0 @jupyterlab/rendermime
>=7.0.2 <7.1.0            >=6.0.2 <7.0.0 @jupyterlab/services
>=4.0.2 <4.1.0            >=3.4.0 <4.0.0 @jupyterlab/ui-components
>=2.0.0 <3.0.0            >=1.3.3 <2.0.0 @lumino/algorithm
>=2.0.0 <3.0.0            >=1.5.3 <2.0.0 @lumino/coreutils
>=2.0.0 <3.0.0            >=1.4.3 <2.0.0 @lumino/disposable
>=2.0.0 <3.0.0            >=1.7.1 <2.0.0 @lumino/dragdrop
>=2.0.0 <3.0.0            >=1.4.3 <2.0.0 @lumino/messaging
>=2.0.0 <3.0.0            >=1.4.3 <2.0.0 @lumino/signaling
>=2.0.1 <3.0.0            >=1.16.1 <2.0.0@lumino/widgets
  warnings.warn(msg[-1].strip())
C:\Users\melan\mambaforge\envs\thesis\Lib\site-packages\jupyterlab\debuglog.py:58: UserWarning: See the log file for details: C:\Users\melan\AppData\Local\Temp\jupyterlab-debug-mqizwi8h.log
  warnings.warn(f"See the log file for details: {log_path!s}")

For jupyterlab-sos extension :

(thesis) C:\WINDOWS\system32>jupyter labextension install jupyterlab-sos
←[33m(Deprecated) Installing extensions with the jupyter labextension install 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 ←[0m
C:\Users\melan\mambaforge\envs\thesis\Lib\site-packages\jupyterlab\debuglog.py:56: UserWarning: An error occurred.
  warnings.warn("An error occurred.")
C:\Users\melan\mambaforge\envs\thesis\Lib\site-packages\jupyterlab\debuglog.py:57: UserWarning: ValueError: The extension "jupyterlab-sos" does not yet support the current version of JupyterLab.


Conflicting Dependencies:
JupyterLab              Extension      Package
>=4.0.2 <4.1.0          >=3.0.2 <4.0.0 @jupyterlab/application
>=4.1.2 <4.2.0          >=3.0.2 <4.0.0 @jupyterlab/apputils
>=4.0.2 <4.1.0          >=3.0.2 <4.0.0 @jupyterlab/codemirror
>=4.0.2 <4.1.0          >=3.0.2 <4.0.0 @jupyterlab/console
>=4.0.2 <4.1.0          >=3.0.2 <4.0.0 @jupyterlab/notebook
>=7.0.2 <7.1.0          >=6.0.2 <7.0.0 @jupyterlab/services
>=2.0.0 <3.0.0          >=1.3.3 <2.0.0 @lumino/algorithm
>=2.0.1 <3.0.0          >=1.12.0 <2.0.0@lumino/commands
>=2.0.0 <3.0.0          >=1.4.3 <2.0.0 @lumino/disposable
  warnings.warn(msg[-1].strip())
C:\Users\melan\mambaforge\envs\thesis\Lib\site-packages\jupyterlab\debuglog.py:58: UserWarning: See the log file for details: C:\Users\melan\AppData\Local\Temp\jupyterlab-debug-_dhyco1t.log
  warnings.warn(f"See the log file for details: {log_path!s}")

I'm new to Python (well pretty new we can say) and I'm trying to make this work for days now, maybe I'll try returning on a basic Python / pip installation but I don't think it will change anything, maybe it will be worse in fact ...

Thank you in advance !

@BoPeng
Copy link
Contributor

BoPeng commented Jun 15, 2023

What is your version of JupyterLab? I think the problem is that jupyterlab-sos currently depends on version 3.4.0 version of the API

https://github.com/vatlab/jupyterlab-sos/blob/498aaa3d39d1a16e468226b1f98a6fbde3c34ce8/package.json#L50C34-L52

@BoPeng
Copy link
Contributor

BoPeng commented Jun 15, 2023

jupyterlab 4.0.0 was released a month ago so this is why we have not been able to catch up. Before we formally support this version, you can try to use a JupyterLab 3.x.x since extensions are unlikely supporting this latest version now.

@melyym
Copy link
Author

melyym commented Jun 15, 2023

Hello,

Thank you for your response, and sorry for asking simple questions.

Ok my jupyterlab version is this ;

jupyter-lsp               2.2.0              pyhd8ed1ab_0    conda-forge
jupyter_client            8.2.0              pyhd8ed1ab_0    conda-forge
jupyter_core              5.3.1           py311h1ea47a8_0    conda-forge
jupyter_events            0.6.3              pyhd8ed1ab_0    conda-forge
jupyter_server            2.6.0              pyhd8ed1ab_0    conda-forge
jupyter_server_terminals  0.4.4              pyhd8ed1ab_1    conda-forge
jupyterlab                4.0.2              pyhd8ed1ab_0    conda-forge
jupyterlab_pygments       0.2.2              pyhd8ed1ab_0    conda-forge
jupyterlab_server         2.23.0             pyhd8ed1ab_0    conda-forge

Yes I knew that it was a timeline problem and I understand.
So I'll try using simple Jupyter Notebook or ancient version of Jupyterlab see if it works.

I come back tomorrow with the result thank you again.

@BoPeng
Copy link
Contributor

BoPeng commented Jun 15, 2023

Let me see if JupyterLab 4 has incompatible API change for jupyterlab-sos.

@BoPeng
Copy link
Contributor

BoPeng commented Jun 15, 2023

Unfortunately there are incompatible API changes so this is not a done-after-changing-version-number issue. That means the bug will likely take much longer to fix given my tight schedule nowadays.

@BoPeng BoPeng added the bug Something isn't working label Jun 15, 2023
@BoPeng BoPeng self-assigned this Jun 15, 2023
@melyym
Copy link
Author

melyym commented Jun 16, 2023

Ok I see ! No problem.
Thank you very much for looking into it, and thank you for the work done so far, it will help me a lot.

@melyym melyym closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2023
@BoPeng BoPeng reopened this Jun 16, 2023
@BoPeng
Copy link
Contributor

BoPeng commented Jun 16, 2023

I will keep the ticket open as a reminder for updating jupyterlab-sos.

@BoPeng
Copy link
Contributor

BoPeng commented Sep 12, 2023

was stuck for hours at setting up the environment: jupyterlab/jupyterlab#15107

@BoPeng
Copy link
Contributor

BoPeng commented Sep 15, 2023

transient-display-data 0.4.4 and jupyterlab-sos 0.10.0 are released to support JupyterLab 4.x. However, this release uses Python syntax highlighting for all cells and lacks support for sos-specific syntax highlighting.

The reason for this missing feature is that JLab4.x only supports CodeMirror 6, which was completely rewritten from CodeMirror5 and has a brand new way of writing language modules. I will rewrite the language module for CM6 but it can take weeks. I therefore decided to release jupyterlab-sos 0.10.0 without this feature.

Please feel to test, or wait for jupyterlab-sos 0.10.1 with proper syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants