Skip to content

Commit 9f85d00

Browse files
committed
add thebe live code
1 parent 14daffc commit 9f85d00

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"myst_nb",
1616
"sphinx_copybutton",
1717
"sphinx_design",
18+
"sphinx_thebe",
1819
]
1920

2021
myst_enable_extensions = [
@@ -55,6 +56,7 @@
5556
"use_issues_button": True,
5657
"use_edit_page_button": True,
5758
"launch_buttons": {
58-
"binderhub_url": "https://mybinder.org"
59+
"binderhub_url": "https://mybinder.org",
60+
"thebe": True,
5961
},
6062
}

pixi.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pytest = ">=8.3.5,<9"
4343
nbval = ">=0.11.0,<0.12"
4444
jupytext = ">=1.17.1,<2"
4545
ipympl = ">=0.9"
46+
sphinx-thebe = ">=0.3.1"
4647

4748
[feature.base.pypi-dependencies]
4849
sphinx = ">=8.0.2"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sphinx
33
myst-nb
44
sphinx-book-theme
55
sphinx-design
6+
sphinx-thebe
67
ipympl
78
sphinx-copybutton
89
# For tutorials

0 commit comments

Comments
 (0)