Skip to content

Commit

Permalink
Merge pull request #291 from python-adaptive/fix-docs
Browse files Browse the repository at this point in the history
fix docs
  • Loading branch information
basnijholt authored Sep 17, 2020
2 parents eb17d6f + 3d0bc9d commit f40c5da
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 28 deletions.
3 changes: 2 additions & 1 deletion adaptive/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class BaseRunner(metaclass=abc.ABCMeta):
the learner as its sole argument, and return True when we should
stop requesting more points.
executor : `concurrent.futures.Executor`, `distributed.Client`,\
`mpi4py.futures.MPIPoolExecutor`, or `ipyparallel.Client`, optional
`mpi4py.futures.MPIPoolExecutor`, `ipyparallel.Client` or\
`loky.get_reusable_executor`, optional
The executor in which to evaluate the function to be learned.
If not provided, a new `~concurrent.futures.ProcessPoolExecutor`.
ntasks : int, optional
Expand Down
26 changes: 13 additions & 13 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ channels:

dependencies:
- python
- sortedcollections
- scikit-optimize
- scikit-learn <=0.23.1 # because of https://github.com/scikit-optimize/scikit-optimize/issues/931, remove dep when fixed
- scipy
- holoviews
- bokeh
- plotly
- ipywidgets
- jupyter_sphinx ==0.2.3 # because of https://github.com/jupyter/jupyter-sphinx/issues/126
- atomicwrites
- sphinx_fontawesome
- sphinx
- m2r2
- sortedcollections=1.2.1
- scikit-optimize=0.8.1
- scikit-learn=0.23.2
- scipy=1.5.2
- holoviews=1.13.3
- bokeh=2.2.1
- plotly=4.10.0
- ipywidgets=7.5.1
- jupyter_sphinx=0.3.1
- atomicwrites=1.4.0
- sphinx_fontawesome=0.0.6
- sphinx=3.2.1
- m2r2=0.2.5
- pip:
- sphinx_rtd_theme
7 changes: 5 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"jupyter_sphinx.execute",
"jupyter_sphinx",
"sphinx_fontawesome",
"m2r2",
]
Expand Down Expand Up @@ -142,7 +142,10 @@
"loky": ("https://loky.readthedocs.io/en/stable/", None),
}


html_js_files = [
"https://cdn.bokeh.org/bokeh/release/bokeh-2.2.1.min.js",
"https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.2.1.min.js",
]
html_logo = "logo_docs.png"


Expand Down
2 changes: 1 addition & 1 deletion docs/source/docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ on the *Play* :fa:`play` button or move the sliders.
from adaptive.learner.learner1D import uniform_loss, default_loss
import holoviews as hv
import numpy as np
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()
%output holomap='scrubber'

`adaptive.Learner1D`
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.AverageLearner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.AverageLearner`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

The next type of learner averages a function until the uncertainty in
the average meets some condition.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.BalancingLearner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.BalancingLearner`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import holoviews as hv
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.DataSaver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.DataSaver`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

If the function that you want to learn returns a value along with some
metadata, you can wrap your learner in an `adaptive.DataSaver`.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.IntegratorLearner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.IntegratorLearner`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import holoviews as hv
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.Learner1D.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.Learner1D`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import numpy as np
from functools import partial
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.Learner2D.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.Learner2D`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import numpy as np
from functools import partial
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.LearnerND.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.LearnerND`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import holoviews as hv
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.SKOptLearner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.SKOptLearner`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import holoviews as hv
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.SequenceLearner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Tutorial `~adaptive.SequenceLearner`
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import holoviews as hv
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.advanced-topics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Advanced Topics
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

import asyncio
from functools import partial
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorial/tutorial.custom_loss.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Custom adaptive logic for 1D and 2D
:hide-code:

import adaptive
adaptive.notebook_extension(_inline_js=False)
adaptive.notebook_extension()

# Import modules that are used in multiple cells
import numpy as np
Expand Down

0 comments on commit f40c5da

Please sign in to comment.