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 4a6b612 + fd25c85 commit 22c3978Copy full SHA for 22c3978
1 file changed
lib/matplotlib/sphinxext/ipython_directive.py
@@ -80,9 +80,15 @@
80
matplotlib.use('Agg')
81
82
# Our own
83
-from IPython import Config, InteractiveShell
84
-from IPython.core.profiledir import ProfileDir
85
-from IPython.utils import io
+try:
+ from IPython import Config, InteractiveShell
+ from IPython.core.profiledir import ProfileDir
86
+ from IPython.utils import io
87
+except ImportError:
88
+ raise ImportError(
89
+ "Unable to import the necessary objects from IPython. "
90
+ "You may need to install or upgrade your IPython installation.")
91
+
92
93
#-----------------------------------------------------------------------------
94
# Globals
0 commit comments