From 71e8c3b1a69efcc2075f1264023b154ec21804cc Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sun, 28 Jun 2020 21:47:22 +0100 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