Skip to content

Add thebe Live Code #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"myst_nb",
"sphinx_copybutton",
"sphinx_design",
"sphinx_thebe",
]

myst_enable_extensions = [
Expand Down Expand Up @@ -55,6 +56,7 @@
"use_issues_button": True,
"use_edit_page_button": True,
"launch_buttons": {
"binderhub_url": "https://mybinder.org"
"binderhub_url": "https://mybinder.org",
"thebe": True,
},
}
2 changes: 2 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ build = { cmd = [
clean = "rm -rf _build/*"
start = "jupyter lab --FileContentsManager.preferred_dir tutorials"
test = "bash ./test.sh"
serve = "python -m http.server 8000 -d _build/html"

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

[feature.base.pypi-dependencies]
sphinx = ">=8.0.2"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sphinx
myst-nb
sphinx-book-theme
sphinx-design
sphinx-thebe
ipympl
sphinx-copybutton
# For tutorials
Expand Down