-
Notifications
You must be signed in to change notification settings - Fork 8
Add Myst (new tech stack) workflow #50
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2356b5c
Add myst config.
rossbar 836b178
Flatten toc in myst.yml.
rossbar cc46816
Add dependencies for myst stack.
rossbar 68a8529
Add basic myst/sphinx site building instructions to README.
rossbar 68adb70
Add a myst-build job to ci workflows.
rossbar 2634551
Undo .gitignore munging from myst init.
rossbar 70d9747
Fixup rebase bork.
rossbar c4fde8f
Adding new landing page, kept the toctrees in the main one, but we wa…
bsipocz 8d20220
Fix titles and filenames
bsipocz 709a578
Ignore JB2 landing page in JB1
bsipocz 6288c99
Add a myst-build job to ci workflows.
rossbar a4de58d
Totally ignore the JB2 landing page in JB1
bsipocz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Executable Tutorials | ||
|
||
This is meant to demonstrate by example how to deploy tutorial materials. The | ||
examples show common patterns including runnable code, plots, exercises with | ||
solutions, etc. | ||
|
||
## How to Run The Code | ||
|
||
`````{tab-set} | ||
````{tab-item} Locally with pixi | ||
|
||
Clone the repository and launch JupyterLab. | ||
|
||
```sh | ||
git clone https://github.com/scientific-python/executable-tutorials | ||
cd executable-tutorials | ||
|
||
pixi run start | ||
``` | ||
```` | ||
|
||
````{tab-item} Locally with pip | ||
|
||
Clone the repository, create an enviornment, install the requirements, and | ||
launch JupyterLab. | ||
|
||
|
||
```sh | ||
git clone https://github.com/scientific-python/executable-tutorials | ||
cd executable-tutorials | ||
|
||
python -m venv .venv | ||
source .venv/bin/activate | ||
|
||
pip install -r requirements.txt | ||
jupyter lab | ||
``` | ||
```` | ||
|
||
````{tab-item} In Cloud with Binder | ||
|
||
[Open on Binder][]. | ||
|
||
```` | ||
|
||
````{tab-item} JupyterLite (experimental) | ||
|
||
[Open with JupyterLite][]. | ||
|
||
```` | ||
````` | ||
|
||
Or, instead of _running_ the code, you may view the code and results by | ||
following the links below. | ||
|
||
## Example Tutorials | ||
|
||
We maintain a collection of example tutorials so showcase some features. | ||
|
||
::::{grid} 1 1 2 2 | ||
:::{card} Executable Code ✨ | ||
:link: ./tutorials/executable/basics.md | ||
Tutorial with basic executable cells. | ||
::: | ||
|
||
:::{card} Interactive Matplotlib Figures 🐍 | ||
:link: ./tutorials/matplotlib/interactive_mpl.md | ||
Tutorial with interactive matplotlib figures. | ||
::: | ||
|
||
:::{card} Static Matplotlib Figures 📑 | ||
:link: ./tutorials/matplotlib/static_mpl.md | ||
Tutorial with interactive matplotlib figures. | ||
::: | ||
|
||
:::{card} Static Code 📖 | ||
:link: ./tutorials/static/static.md | ||
Tutorial with static content, code cells are not executed. | ||
::: | ||
|
||
:::: | ||
|
||
|
||
## Contributing documentation | ||
|
||
We maintain guideline documents for maintainers of tutorial repositories in our [Maintainers' Guide](./maintainer-guide.md). | ||
We envision this document to be a collection of collective wisdom about maintaining MyST Markdown based executable tutorials. | ||
|
||
We also have a document for contributors of this repository in our [Contributors' Guide](./contributing.md). | ||
|
||
|
||
[Open on Binder]: https://mybinder.org/v2/gh/scientific-python/executable-tutorials/main?urlpath=tree/tutorials/ | ||
[Open with JupyterLite]: https://scientific-python.github.io/executable-tutorials/jupyterlite/lab/index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# See docs at: https://mystmd.org/guide/frontmatter | ||
version: 1 | ||
project: | ||
id: 9db2473e-461d-4266-86fa-a2a0ea3eb2c9 | ||
title: Executable Tutorials | ||
description: Executable tutorials for Scientific Python | ||
keywords: [] | ||
authors: [Scientific Python Developers] | ||
github: https://github.com/scientific-python/executable-tutorials | ||
# To autogenerate a Table of Contents, run "myst init --write-toc" | ||
toc: | ||
# Auto-generated by `myst init --write-toc` | ||
- file: index_jb2.md | ||
- title: Tutorials | ||
children: | ||
- file: tutorials/executable/basics.md | ||
- file: tutorials/matplotlib/interactive_mpl.md | ||
- file: tutorials/matplotlib/static_mpl.md | ||
- file: tutorials/static/static.md | ||
- file: contributing.md | ||
- file: maintainer-guide.md | ||
|
||
site: | ||
template: book-theme | ||
# options: | ||
# favicon: favicon.ico | ||
# logo: site_logo.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ nbval | |
pytest-custom_exit_code | ||
jupytext | ||
jupyterlab-myst | ||
# For myst stack | ||
mystmd | ||
jupyter |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this load the JS bundles as well? I expect CORS to cause trouble, so that you need a simple static server, like
python -m http.server
(I prefer a multi-threaded server script, but you get the idea).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is with the
build with sphinx
section.I'm fairly certain it's a practically garbage page when opened up after a a myst build.