From bdd0c22bc5544c7db130d2610bafed74a328addb Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Thu, 7 May 2020 11:57:06 +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