Skip to content

Commit ac2c593

Browse files
authored
Merge pull request #204 from python-adaptive/sphinx
use jupyter_sphinx v0.2.0 from conda instead of my branch
2 parents bb9dd07 + b2db3d8 commit ac2c593

13 files changed

+30
-2
lines changed

docs/environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- bokeh=1.0.4
1313
- plotly=3.9.0
1414
- ipywidgets=7.4.2
15+
- jupyter_sphinx=0.2.0
1516
- pip:
16-
- git+https://github.com/basnijholt/jupyter-sphinx.git@widgets_execute
1717
- sphinx_fontawesome==0.0.6
1818
- m2r==0.2.1

docs/source/conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# -- Project information -----------------------------------------------------
2323

2424
project = "adaptive"
25-
copyright = "2018, Adaptive Authors"
25+
copyright = "2018-2019, Adaptive Authors"
2626
author = "Adaptive Authors"
2727

2828
# The short X.Y version
@@ -83,6 +83,12 @@
8383
pygments_style = "sphinx"
8484

8585

86+
jupyter_sphinx_thebelab_config = {
87+
"requestKernel": True,
88+
"binderOptions": {"repo": "python-adaptive/adaptive"},
89+
}
90+
91+
8692
# -- Options for HTML output -------------------------------------------------
8793

8894
# The theme to use for HTML and HTML Help pages. See the documentation for

docs/source/tutorial/tutorial.AverageLearner.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.AverageLearner`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.AverageLearner`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.BalancingLearner.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.BalancingLearner`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.BalancingLearner`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.DataSaver.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.DataSaver`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.DataSaver`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.IntegratorLearner.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.IntegratorLearner`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.IntegratorLearner`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.Learner1D.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.Learner1D`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.Learner1D`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.Learner2D.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.Learner2D`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.Learner2D`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.LearnerND.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.LearnerND`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.LearnerND`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.SKOptLearner.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.SKOptLearner`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.SKOptLearner`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.SequenceLearner.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Tutorial `~adaptive.SequenceLearner`
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.SequenceLearner`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.advanced-topics.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Advanced Topics
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.advanced-topics`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

docs/source/tutorial/tutorial.custom_loss.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Custom adaptive logic for 1D and 2D
1010
The complete source code of this tutorial can be found in
1111
:jupyter-download:notebook:`tutorial.custom-loss`
1212

13+
.. thebe-button:: Run the code live inside the documentation!
14+
1315
.. jupyter-execute::
1416
:hide-code:
1517

0 commit comments

Comments
 (0)