Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 0e4cb23 + a0b2949 commit 3c11289Copy full SHA for 3c11289
1 file changed
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") is None:
1747
return
1748
import IPython
1749
ip = IPython.get_ipython()
0 commit comments