Skip to content

Commit f40c5da

Browse files
authored
Merge pull request #291 from python-adaptive/fix-docs
fix docs
2 parents eb17d6f + 3d0bc9d commit f40c5da

15 files changed

+32
-28
lines changed

adaptive/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ class BaseRunner(metaclass=abc.ABCMeta):
6262
the learner as its sole argument, and return True when we should
6363
stop requesting more points.
6464
executor : `concurrent.futures.Executor`, `distributed.Client`,\
65-
`mpi4py.futures.MPIPoolExecutor`, or `ipyparallel.Client`, optional
65+
`mpi4py.futures.MPIPoolExecutor`, `ipyparallel.Client` or\
66+
`loky.get_reusable_executor`, optional
6667
The executor in which to evaluate the function to be learned.
6768
If not provided, a new `~concurrent.futures.ProcessPoolExecutor`.
6869
ntasks : int, optional

docs/environment.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ channels:
55

66
dependencies:
77
- python
8-
- sortedcollections
9-
- scikit-optimize
10-
- scikit-learn <=0.23.1 # because of https://github.com/scikit-optimize/scikit-optimize/issues/931, remove dep when fixed
11-
- scipy
12-
- holoviews
13-
- bokeh
14-
- plotly
15-
- ipywidgets
16-
- jupyter_sphinx ==0.2.3 # because of https://github.com/jupyter/jupyter-sphinx/issues/126
17-
- atomicwrites
18-
- sphinx_fontawesome
19-
- sphinx
20-
- m2r2
8+
- sortedcollections=1.2.1
9+
- scikit-optimize=0.8.1
10+
- scikit-learn=0.23.2
11+
- scipy=1.5.2
12+
- holoviews=1.13.3
13+
- bokeh=2.2.1
14+
- plotly=4.10.0
15+
- ipywidgets=7.5.1
16+
- jupyter_sphinx=0.3.1
17+
- atomicwrites=1.4.0
18+
- sphinx_fontawesome=0.0.6
19+
- sphinx=3.2.1
20+
- m2r2=0.2.5
2121
- pip:
2222
- sphinx_rtd_theme

docs/source/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"sphinx.ext.mathjax",
5252
"sphinx.ext.viewcode",
5353
"sphinx.ext.napoleon",
54-
"jupyter_sphinx.execute",
54+
"jupyter_sphinx",
5555
"sphinx_fontawesome",
5656
"m2r2",
5757
]
@@ -142,7 +142,10 @@
142142
"loky": ("https://loky.readthedocs.io/en/stable/", None),
143143
}
144144

145-
145+
html_js_files = [
146+
"https://cdn.bokeh.org/bokeh/release/bokeh-2.2.1.min.js",
147+
"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.2.1.min.js",
148+
]
146149
html_logo = "logo_docs.png"
147150

148151

docs/source/docs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ on the *Play* :fa:`play` button or move the sliders.
4848
from adaptive.learner.learner1D import uniform_loss, default_loss
4949
import holoviews as hv
5050
import numpy as np
51-
adaptive.notebook_extension(_inline_js=False)
51+
adaptive.notebook_extension()
5252
%output holomap='scrubber'
5353

5454
`adaptive.Learner1D`

docs/source/tutorial/tutorial.AverageLearner.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tutorial `~adaptive.AverageLearner`
1414
:hide-code:
1515

1616
import adaptive
17-
adaptive.notebook_extension(_inline_js=False)
17+
adaptive.notebook_extension()
1818

1919
The next type of learner averages a function until the uncertainty in
2020
the average meets some condition.

docs/source/tutorial/tutorial.BalancingLearner.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tutorial `~adaptive.BalancingLearner`
1414
:hide-code:
1515

1616
import adaptive
17-
adaptive.notebook_extension(_inline_js=False)
17+
adaptive.notebook_extension()
1818

1919
import holoviews as hv
2020
import numpy as np

docs/source/tutorial/tutorial.DataSaver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tutorial `~adaptive.DataSaver`
1414
:hide-code:
1515

1616
import adaptive
17-
adaptive.notebook_extension(_inline_js=False)
17+
adaptive.notebook_extension()
1818

1919
If the function that you want to learn returns a value along with some
2020
metadata, you can wrap your learner in an `adaptive.DataSaver`.

docs/source/tutorial/tutorial.IntegratorLearner.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tutorial `~adaptive.IntegratorLearner`
1414
:hide-code:
1515

1616
import adaptive
17-
adaptive.notebook_extension(_inline_js=False)
17+
adaptive.notebook_extension()
1818

1919
import holoviews as hv
2020
import numpy as np

docs/source/tutorial/tutorial.Learner1D.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tutorial `~adaptive.Learner1D`
1414
:hide-code:
1515

1616
import adaptive
17-
adaptive.notebook_extension(_inline_js=False)
17+
adaptive.notebook_extension()
1818

1919
import numpy as np
2020
from functools import partial

docs/source/tutorial/tutorial.Learner2D.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tutorial `~adaptive.Learner2D`
1414
:hide-code:
1515

1616
import adaptive
17-
adaptive.notebook_extension(_inline_js=False)
17+
adaptive.notebook_extension()
1818

1919
import numpy as np
2020
from functools import partial

0 commit comments

Comments
 (0)