Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

incompatibility with matplotlib 3.7 #47

Open
@edublancas

Description

@edublancas

Our tests started failing with matplotlib 3.7, I tracked down the error locally:

# ensure you're running matplotlib 3.7
pip install matplotlib -U

# run tests
pytest tests --ignore=tests/test_engine.py

the error is happening in the test_no_outputs test. Upon execution, this is how the notebook looks like:

image

there's a clear error here since the first cell x = 1 should not produce any outputs; yet, it displays a plot. Seems like with the new matplotlib release, we need to do some "matplotlib state cleaning" when destroying the shell object, so when creating a new one, we don't share state from previous notebook runs. My guess is that we're missing something here

It's still unclear what changed in matplotlib 3.7 so more investigation is needed. for the time being, I pinned matplotlib so our tests pass.

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