Skip to content

Commit cc9a626

Browse files
replace nbsphinx with myst-nb and remove pin on ipython (#2838)
1 parent 410a0fb commit cc9a626

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ commands:
3434
pip check
3535
pytest -n 4 --junitxml=test-reports/report.xml << parameters.args >>
3636
esmvaltool version
37+
esmvaltool -- --help
3738
- store_test_results:
3839
path: test-reports/report.xml
3940
- store_artifacts:

doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# ones.
5858
extensions = [
5959
'autodocsumm',
60-
'nbsphinx',
60+
'myst_nb',
6161
'sphinx.ext.autodoc',
6262
'sphinx.ext.doctest',
6363
'sphinx.ext.extlinks',
@@ -78,6 +78,9 @@
7878
'autosummary': True,
7979
}
8080

81+
# Don't execute notebooks
82+
nb_execution_mode = "off"
83+
8184
# Show type hints in function signature AND docstring
8285
autodoc_typehints = 'both'
8386

environment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ dependencies:
5252
- zarr >3
5353
# Python packages needed for building docs
5454
- autodocsumm >=0.2.2
55-
- ipython <9.0 # github.com/ESMValGroup/ESMValCore/issues/2680
56-
- nbsphinx >=0.9.7 # github.com/ESMValGroup/ESMValCore/issues/2669
57-
- sphinx >=6.1.3,<8.2 # Upper pin is a requirement of nbsphinx 0.9.7
55+
- ipython
56+
- myst-nb
57+
- sphinx >=6.1.3
5858
- pydata-sphinx-theme
5959
# Python packages needed for testing
6060
- pre-commit

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ test = [
9191
]
9292
doc = [
9393
"autodocsumm>=0.2.2",
94-
"ipython<9.0", # github.com/ESMValGroup/ESMValCore/issues/2680
95-
"nbsphinx>=0.9.7", # github.com/ESMValGroup/ESMValCore/issues/2669
94+
"ipython",
95+
"myst-nb",
9696
"sphinx>=6.1.3",
9797
"pydata_sphinx_theme",
9898
]

0 commit comments

Comments
 (0)