Skip to content

JupyterLab dependency incorrectly specified #328

@ZelphirKaltstahl

Description

@ZelphirKaltstahl

I think there is a mistake with specifying JupyterLab as a dependency incorrectly.

When I install jupyterlab-code-formatter = "==2.2.1" with juypterlab = "==3.1.13" using pipenv, I receive no warning at all, that these versions are not compatible. In fact, I see JupyterLab being wrongly specified here https://github.com/ryantam626/jupyterlab_code_formatter/blob/4b68e0c4ee45b1a4c985bbd8d6ebc1a138e2cc82/pyproject.toml#L40, while JupyterLab itself tells me, that jupyterlab-code-formatter at version 2.2.1 is incompatible, when I run jupyter labextension list:

"[email protected]" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab                  Extension       Package
>=3.1.12 <3.2.0             >=3.6.0 <4.0.0||>=4.0.0 <4.1.0@jupyterlab/application
>=3.1.12 <3.2.0             >=3.6.0 <4.0.0||>=4.0.0 <4.1.0@jupyterlab/fileeditor
>=3.1.12 <3.2.0             >=3.6.0 <4.0.0||>=4.0.0 <4.1.0@jupyterlab/mainmenu
>=3.1.12 <3.2.0             >=3.6.0 <4.0.0||>=4.0.0 <4.1.0@jupyterlab/settingregistry

This package should specify its dependency properly, so that users notice this mismatch in dependencies as early as possible, which is when installing the Python package from PyPI.

Now I also cannot easily figure out, which version of jupyterlab-code-formatter I have to use instead, because I first have to create a complete setup, install the extension etc. and then run jupyter labextension list again, to find out, whether I installed a compatible version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions