8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec609a commit 1c25c8aCopy full SHA for 1c25c8a
lib/matplotlib/backend_bases.py
@@ -1743,7 +1743,7 @@ def _fix_ipython_backend2gui(cls):
1743
# `ipython --auto`). This cannot be done at import time due to
1744
# ordering issues, so we do it when creating a canvas, and should only
1745
# be done once per class (hence the `lru_cache(1)`).
1746
- if "IPython" not in sys.modules:
+ if sys.modules.get("IPython", None) is None:
1747
return
1748
import IPython
1749
ip = IPython.get_ipython()
0 commit comments