Skip to content

Commit

Permalink
Use short matplotlib backend name
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 authored and martinRenou committed Apr 2, 2024
1 parent c5887ea commit 4af2f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matplotlib_inline/backend_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _enable_matplotlib_integration():
from matplotlib import get_backend
ip = get_ipython()
backend = get_backend()
if ip and backend == 'module://%s' % __name__:
if ip and backend in ('inline', 'module://matplotlib_inline.backend_inline'):
from IPython.core.pylabtools import activate_matplotlib
try:
activate_matplotlib(backend)
Expand Down

0 comments on commit 4af2f45

Please sign in to comment.