Skip to content

Commit 40bdd68

Browse files
guenpbsipocz
andauthored
Add thebe Live Code (#69)
* add thebe live code * add a pixi command to run an http server * Adding minimum version for thebe --------- Co-authored-by: Brigitta Sipőcz <[email protected]>
1 parent cb2d9d1 commit 40bdd68

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-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 = [
@@ -56,6 +57,7 @@
5657
"use_issues_button": True,
5758
"use_edit_page_button": True,
5859
"launch_buttons": {
59-
"binderhub_url": "https://mybinder.org"
60+
"binderhub_url": "https://mybinder.org",
61+
"thebe": True,
6062
},
6163
}

pixi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ build = { cmd = [
2727
clean = "rm -rf _build/*"
2828
start = "jupyter lab --FileContentsManager.preferred_dir tutorials"
2929
test = "bash ./test.sh"
30+
serve = "python -m http.server 8000 -d _build/html"
3031

3132
[feature.base.activation]
3233
# Workaround overrides JupyterLab configuration (at the environment level) to
@@ -43,6 +44,7 @@ pytest = ">=8.3.5,<9"
4344
nbval = ">=0.11.0,<0.12"
4445
jupytext = ">=1.17.1,<2"
4546
ipympl = ">=0.9"
47+
sphinx-thebe = ">=0.3.1"
4648

4749
[feature.base.pypi-dependencies]
4850
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>=0.3.1
67
ipympl
78
sphinx-copybutton
89
# For tutorials

0 commit comments

Comments
 (0)