Skip to content

Commit 91e38f1

Browse files
committed
use jupyter_execute_disable_stderr=True to not make sphinx fail on a DeprecationWarning
1 parent ac2c593 commit 91e38f1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/environment.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ dependencies:
1212
- bokeh=1.0.4
1313
- plotly=3.9.0
1414
- ipywidgets=7.4.2
15-
- jupyter_sphinx=0.2.0
15+
- jupyter_sphinx=0.2.1
1616
- pip:
17+
- git+https://github.com/jbweston/jupyter-sphinx.git@feature/disable-stderr
1718
- sphinx_fontawesome==0.0.6
1819
- m2r==0.2.1

docs/source/conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@
1515
import os
1616
import sys
1717

18-
sys.path.insert(0, os.path.abspath("../.."))
18+
package_path = os.path.abspath("../..")
19+
# Insert into sys.path so that we can import adaptive here
20+
sys.path.insert(0, package_path)
1921

2022
import adaptive # noqa: E402
2123

24+
# Insert into PYTHONPATH so that jupyter-sphinx will pick it up
25+
os.environ["PYTHONPATH"] = ":".join((package_path, os.environ.get("PYTHONPATH", "")))
26+
2227
# -- Project information -----------------------------------------------------
2328

2429
project = "adaptive"
@@ -88,6 +93,7 @@
8893
"binderOptions": {"repo": "python-adaptive/adaptive"},
8994
}
9095

96+
jupyter_execute_disable_stderr = True
9197

9298
# -- Options for HTML output -------------------------------------------------
9399

0 commit comments

Comments
 (0)