Skip to content

Commit d7b1f87

Browse files
⬆️ Update myst-nb requirement from ~=0.13.1 to ~=1.0.0 (chrisjsewell#52)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Sewell <[email protected]>
1 parent 571c6ee commit d7b1f87

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.readthedocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.8"
6+
python: "3.9"
77

88
python:
99
install:

docs/source/conf.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@
9696
"use_issues_button": True,
9797
"use_repository_button": True,
9898
}
99-
jupyter_execute_notebooks = "cache"
100-
execution_show_tb = "READTHEDOCS" in os.environ
101-
execution_timeout = 60 # Note: 30 was timing out on RTD
10299
myst_enable_extensions = ["colon_fence"]
100+
nb_execution_mode = "cache"
101+
nb_execution_show_tb = "READTHEDOCS" in os.environ
102+
nb_execution_timeout = 60 # Note: 30 was timing out on RTD
103+
nb_merge_streams = True
103104

104105
# -- Sphinx setup for other outputs ---------------------------------------
105106

docs/source/user_guide/tutorial_intro.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@ The regeneration can be observed, if we run two tests on the same notebook.
222222
%%pytest -v --color=yes --disable-warnings
223223
224224
import os, tempfile
225-
import importlib_resources
225+
try:
226+
# Python <= 3.8
227+
from importlib_resources import files
228+
except ImportError:
229+
from importlib.resources import files
226230
import pytest
227231
from pytest_notebook import example_nbs
228232

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ docs = [
5555
"sphinx>=3",
5656
"pyyaml",
5757
"sphinx-book-theme~=1.0.1",
58-
"myst-nb~=0.13.1",
58+
"myst-nb~=1.0",
5959
"coverage~=5.0",
6060
"pytest-cov",
6161
]

0 commit comments

Comments
 (0)