Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use matplotlib deprecated functions #289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pydev_ipython/matplotlibtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def find_gui_and_backend():
def is_interactive_backend(backend):
"""Check if backend is interactive"""
matplotlib = sys.modules["matplotlib"]
from matplotlib.rcsetup import interactive_bk, non_interactive_bk # @UnresolvedImport
from matplotlib.backends import BackendFilter, backend_registry # @UnresolvedImport

if backend in interactive_bk:
if backend in backend_registry.list_builtin(BackendFilter.INTERACTIVE):
return True
elif backend in non_interactive_bk:
elif backend in backend_registry.list_builtin(BackendFilter.NON_INTERACTIVE):
return False
else:
return matplotlib.is_interactive()
Expand Down
Loading