You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a postprocessing script to run on the notebook JSON after running jupyterbook build. This script should target the notebooks in the textbook/_build/_sources directory, not the textbook/notebooks directory!
Postprocessing
Remove MyST directives from markdown cells. Such directives are prefixed by four backticks, but these cause problems in the classic notebook interface (i.e., on JupyterHub) if the cells also contain backticks to isolate code blocks. The postprocessing script should simple remove any lines of source that begin with four backticks.
For the {image} directive, replace the block with a standard notebook inline image cell, using the URL following the directive.
Remove any cells tagged as instructor. These should be tagged also as remove-cell to exclude them from the rendered book. But we want to remove the cells from the student version of the notebooks, too.
Activity
dolsysmith commentedon Jul 6, 2023
GH Actions Workflow:
jupyter-book build(as in this example)._buildfolder (following thedeployjob in the above workflow.dolsysmith commentedon Jul 12, 2023
Write a postprocessing script to run on the notebook JSON after running
jupyterbook build. This script should target the notebooks in thetextbook/_build/_sourcesdirectory, not thetextbook/notebooksdirectory!Postprocessing
sourcethat begin with four backticks.{image}directive, replace the block with a standard notebook inline image cell, using the URL following the directive.instructor. These should be tagged also asremove-cellto exclude them from the rendered book. But we want to remove the cells from the student version of the notebooks, too.dolsysmith commentedon Jul 17, 2023
Add to
publish.shsteps:homework-modeulspublish.shdolsysmith commentedon Apr 19, 2024
main.