Skip to content

Failed test due to matplotlib deprecation of interactive_bk #287

Description

@scottshambaugh

I originally submitted this issue for debugpy microsoft/debugpy#1623, and saw on a linked issue that there is a comment tracking the issue back to PyDev.Debugger: microsoft/debugpy#1633 (comment)

I'm not sure if the issue is in this repo, but potentially this line is at fault?

self._gui_event_loop = "matplotlib"

Please see the linked tickets for details, but the end result is that I am unable to debug tests in VSCode via the Python extension right now. The following error is raised:

E       matplotlib._api.deprecation.MatplotlibDeprecationWarning: The interactive_bk attribute was deprecated in Matplotlib 3.9 and will be removed in 3.11. Use ``matplotlib.backends.backend_registry.list_builtin(matplotlib.backends.BackendFilter.INTERACTIVE)`` instead.

Activity

  1. tcrasset commented on Sep 3, 2024

    @tcrasset

    A workaround to make debug work is to ignore the warnings using:

    In pyproject.toml (or other configuration file, adapt the syntax accordingly)

    [tool.pytest.ini_options]
    
    filterwarnings = [
        "error", # raise error on every warning, except the ones below
        "ignore::matplotlib._api.deprecation.MatplotlibDeprecationWarning",
    ]
    
  2. scottshambaugh commented on Feb 24, 2025

    @scottshambaugh
    Author

    It looks like the linked issue has resolved things, though I haven't tested it. This issue may not be needed any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions