File: deb_ndsphinx_optional

package info (click to toggle)
pandas 0.23.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 167,704 kB
  • sloc: python: 230,826; ansic: 11,317; sh: 682; makefile: 133
file content (18 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -72,10 +72,14 @@ extensions = ['sphinx.ext.autodoc',
               'sphinx.ext.mathjax',
               'sphinx.ext.ifconfig',
               'sphinx.ext.linkcode',
-              'nbsphinx',
               ]
 
 mathjax_path='MathJax.js'
+try:
+    import nbsphinx
+    extensions += ['nbsphinx']
+except:
+    pass  # survive without
 
 exclude_patterns = ['**.ipynb_checkpoints']