From 2148e5162920e4cf7861d7156c7a0a7b06b9c6e9 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Wed, 26 Feb 2020 18:45:58 +0000 Subject: [PATCH] deb_ndsphinx_optional Gbp-Pq: Name deb_ndsphinx_optional --- doc/source/conf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index fc007ff2..e946813e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -63,11 +63,16 @@ extensions = [ "sphinx.ext.mathjax", "sphinx.ext.ifconfig", "sphinx.ext.linkcode", - "nbsphinx", + # "nbsphinx", "contributors", # custom pandas extension ] mathjax_path="MathJax.js" +try: + import nbsphinx + extensions += ["nbsphinx"] +except: + pass # survive without exclude_patterns = ["**.ipynb_checkpoints"] try: -- 2.30.2