- Run
npm install - Run
npm run build - Use
node dist/provision.cjs **/*.mdinside your top-level Python virtual environment that is used by MyST to run Jupyter Server
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
| [flake8] | |
| # Match black | |
| max-line-length = 88 | |
| # Allow asymmetric commas, etc. | |
| extend-ignore = | |
| E203, | |
| # Spurious warnings in JupyterLab for code cells that follow Markdown cells | |
| E303 | |
| exclude = .git,__pycache__,build,dist,.venv | |
| max-complexity = 10 |
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
| #!/usr/bin/env python3 | |
| import re | |
| import sys | |
| import tomllib | |
| import json | |
| import argparse | |
| import pathlib | |
| import shutil | |
| import subprocess |
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
| import { | |
| JupyterFrontEnd, | |
| JupyterFrontEndPlugin | |
| } from '@jupyterlab/application'; | |
| import { ICommandPalette } from '@jupyterlab/apputils'; | |
| /** | |
| * Initialization data for the myextension extension. | |
| */ | |
| const plugin: JupyterFrontEndPlugin<void> = { |
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
| // ==UserScript== | |
| // @name MyST Slides | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-06-25 | |
| // @description Move between pages in MyST. Keys can be set in CSS via `--key-slide-next|prev` on the `:root` elem. | |
| // @author Angus Hollands | |
| // @match *://*/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=undefined.localhost | |
| // @grant none | |
| // ==/UserScript== |
::::{figure}
% Figure contents taken from https://github.com/walmes/Tikz :::{tikz} domain=-0.25:9, scale=0.7, >=latex
% \draw[very thin,color=gray!30] (-1.1,-1.1) grid (12.1,7.1); \draw[->] (-0.2,0) -- (9.2,0) node[right] {$x$}; \draw[->] (0,-0.2) -- (0,5.5) node[above] {$Y$};
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
| FROM docker.io/node:24-alpine | |
| RUN wget https://codeload.github.com/myst-templates/book-theme/zip/refs/heads/main -O /tmp/template.zip && \ | |
| unzip /tmp/template.zip -d /tmp/ && \ | |
| mv /tmp/book-theme-main /app && \ | |
| cd /app && \ | |
| npm install && \ | |
| printf '#!/bin/ash\nexport CONTENT_CDN="$1"\ncd /app\nnode server.js' > ./entrypoint && \ | |
| chmod +x ./entrypoint | |
| ENTRYPOINT ["/app/entrypoint"] |
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
| # See docs at: https://mystmd.org/guide/frontmatter | |
| version: 1 | |
| project: | |
| plugins: | |
| - type: executable | |
| path: table-plugin.py | |
| site: | |
| template: book-theme |
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
| const COLOURS = { | |
| "positively charged": "#CBE4F9", | |
| "negatively charged": "#CDF5F6", | |
| "polar uncharged": "#EFF9DA", | |
| hydrophobic: "#F9EBDF", | |
| "hydrophobic and aromatic": "#F9D8D6", | |
| special: "#D6CDEA", | |
| }; | |
| const plugin = { |