Skip to content

Commit 81464a3

Browse files
authored
Use nb_execution_raise_on_error Sphinx myst-nb option (#396)
* Use nb_execution_raise_on_error Sphinx myst-nb option The option nb_execution_fail_on_error does not exist. * Pin recent versions * Fix logo * Downgrade panel * Do allow new packages
1 parent 01569d2 commit 81464a3

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

docs/environment.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ channels:
44
- conda-forge
55

66
dependencies:
7-
- python
7+
- python=3.11.3
88
- sortedcollections=2.1.0
99
- scikit-optimize=0.9.0
10-
- scikit-learn=0.24.2
11-
- scipy=1.9.1
12-
- holoviews=1.14.6
13-
- bokeh=2.4.0
14-
- panel=0.12.7
15-
- pandas=1.4.4
16-
- plotly=5.3.1
17-
- ipywidgets=7.6.5
18-
- myst-nb=0.16.0
10+
- scikit-learn=1.2.2
11+
- scipy=1.10.1
12+
- holoviews=1.15.4
13+
- bokeh=2.4.3
14+
- panel=0.14.4
15+
- pandas=2.0.0
16+
- plotly=5.14.1
17+
- ipywidgets=8.0.6
18+
- myst-nb=0.17.1
1919
- sphinx_fontawesome=0.0.6
20-
- sphinx=4.2.0
21-
- ffmpeg=5.1.1
22-
- cloudpickle
23-
- loky
24-
- furo
25-
- myst-parser
26-
- dask
20+
- sphinx=5.3.0
21+
- ffmpeg=5.1.2
22+
- cloudpickle=2.2.1
23+
- loky=3.3.0
24+
- furo=2023.3.27
25+
- myst-parser=0.18.1
26+
- dask=2023.3.2

docs/logo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import holoviews
55
import matplotlib.pyplot as plt
6+
import numpy as np
67
import matplotlib.tri as mtri
78
from PIL import Image, ImageDraw
89

@@ -31,7 +32,8 @@ def plot_learner_and_save(learner, fname):
3132
tri = learner.interpolator(scaled=True).tri
3233
triang = mtri.Triangulation(*tri.points.T, triangles=tri.vertices)
3334
ax.triplot(triang, c="k", lw=0.8)
34-
ax.imshow(learner.plot().Image.I.data, extent=(-0.5, 0.5, -0.5, 0.5))
35+
data = learner.interpolated_on_grid()
36+
ax.imshow(np.vstack(data), extent=(-0.5, 0.5, -0.5, 0.5))
3537
ax.set_xticks([])
3638
ax.set_yticks([])
3739
plt.savefig(fname, bbox_inches="tight", transparent=True, dpi=300, pad_inches=-0.1)

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
# myst-nb configuration
7777
nb_execution_mode = "cache"
7878
nb_execution_timeout = 180
79-
nb_execution_fail_on_error = True
79+
nb_execution_raise_on_error = True
8080

8181

8282
def setup(app):

0 commit comments

Comments
 (0)