Skip to content

Outdated dependencies #84

@onitake

Description

@onitake

The Python module versions in requirements.txt are a bit outdated.

I installed all the dependencies using my system's package manager, and while those packages aren't all at the latest version, some of them are quite far ahead of those in requirements.txt.
These are the versions I have tested:
numpy: 1.21.5
matplotlib: 3.5.2
scipy: 1.8.1
sympy: 1.10.1

There weren't any issues, except for a deprecation in matplotlib 3.6 (changelog is here):

MatplotlibDeprecationWarning: Calling gca() with keyword arguments was deprecated in Matplotlib 3.4. Starting two minor releases later, gca() will take no keyword arguments. The gca() function should only be used to get the current axes, or if no axes exist, create new axes with default keyword arguments. To create a new axes with non-default arguments, use plt.axes() or plt.subplot().
  ax = fig.gca(projection='3d')

The fix for this actually quite easy: Replace

ax = fig.gca(projection='3d')

with

ax = fig.add_subplot(projection='3d')

Also, when I checked the matplotlib 2.2.x documentation, it didn't even mention the projection argument on the gca() function.

Please update the dependency list to more recent versions.

You could also use compatible versions instead of exact versions. For example:

# requirements.txt
ipywidgets ~=8.0
jupyter ~=1.0.0
numpy ~=1.23
matplotlib ~=3.6.0
scipy ~=1.9
sympy ~=1.11

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