Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d8221ab

Browse filesBrowse files
author
Víctor Terrón
committed
Show custom error message if we don't have a matplotlib installation
1 parent b236b0f commit d8221ab
Copy full SHA for d8221ab

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@
4747
# other places throughout the built documents.
4848
#
4949
# The short X.Y version.
50-
import matplotlib
50+
try:
51+
import matplotlib
52+
except ImportError:
53+
msg = "Error: matplotlib must be installed before building the documentation"
54+
sys.exit(msg)
55+
5156
version = matplotlib.__version__
5257
# The full version, including alpha/beta/rc tags.
5358
release = version

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.