Skip to content

Commit

Permalink
jupyter_execute_disable_stderr=True to not make sphinx fail on a Depr…
Browse files Browse the repository at this point in the history
…ecationWarning
  • Loading branch information
basnijholt committed Jul 29, 2019
1 parent ac2c593 commit bc190a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ dependencies:
- bokeh=1.0.4
- plotly=3.9.0
- ipywidgets=7.4.2
- jupyter_sphinx=0.2.0
# - jupyter_sphinx=0.2.1
- pip:
- git+https://github.com/jbweston/jupyter-sphinx.git@feature/disable-stderr # XXX: removed when merged in
- sphinx_fontawesome==0.0.6
- m2r==0.2.1
8 changes: 7 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@
import os
import sys

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

import adaptive # noqa: E402

# Insert into PYTHONPATH so that jupyter-sphinx will pick it up
os.environ["PYTHONPATH"] = ":".join((package_path, os.environ.get("PYTHONPATH", "")))

# -- Project information -----------------------------------------------------

project = "adaptive"
Expand Down Expand Up @@ -88,6 +93,7 @@
"binderOptions": {"repo": "python-adaptive/adaptive"},
}

jupyter_execute_disable_stderr = True

# -- Options for HTML output -------------------------------------------------

Expand Down

0 comments on commit bc190a7

Please sign in to comment.