Skip to content

Commit 4af2f45

Browse files
ianthomas23martinRenou
authored andcommitted
Use short matplotlib backend name
1 parent c5887ea commit 4af2f45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matplotlib_inline/backend_inline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def _enable_matplotlib_integration():
211211
from matplotlib import get_backend
212212
ip = get_ipython()
213213
backend = get_backend()
214-
if ip and backend == 'module://%s' % __name__:
214+
if ip and backend in ('inline', 'module://matplotlib_inline.backend_inline'):
215215
from IPython.core.pylabtools import activate_matplotlib
216216
try:
217217
activate_matplotlib(backend)

0 commit comments

Comments
 (0)