Skip to content

The version of ipykernel installed in the user venv should match the version used by Mu #2550

Open
@carlosperate

Description

@carlosperate

Right now it's manually set up, and overtime it could install a version with some kind of incompability:

mu/mu/wheels/__init__.py

Lines 39 to 57 in 563cb86

mode_packages = [
# pygame is a pgzero dependency, but there is currently an issue where
# pygame versions >=2.1.3 have issues in macOS 10.x, so temporarily for
# Mu release 1.2.1 pin the max version here
# https://github.com/mu-editor/mu/issues/2423
("pgzero", ("pgzero>=1.2.1", "pygame<2.1.3")),
# Lock Werkzeug to < 3.0.0: import flask fails, otherwise.
("flask", ("flask==2.0.3", "Werkzeug<3.0.0")),
# The version of ipykernel here should match to the version used by
# qtconsole at the version specified in setup.py
# FIXME: ipykernel max ver added for macOS 10.13 compatibility, min taken
# from qtconsole 4.7.7. This is mirrored in setup.py
("ipykernel", ("ipykernel>=4.1,<6",)),
# FIXME: ipykernel<6 depends on ipython_genutils, but it isn't explicitly
# declared as a dependency. It also depends on traitlets, which
# incidentally brought ipython_genutils, but in v5.1 it was dropped, so as
# a workaround we need to manually specify it here
("ipython_genutils", ("ipython_genutils>=0.2.0",)),
]

Mu could instead figure out the exact version it has installed, and install the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions