PolicyEngine / policyengine-us

The PolicyEngine US Python package contains a rules engine of the US tax-benefit system, and microdata generation for microsimulation analysis.
https://policyengine.org/us
GNU Affero General Public License v3.0
95 stars 167 forks source link

Automatically add `hide-input` cell tags to Jupyterbook #717

Open MaxGhenis opened 2 years ago

MaxGhenis commented 2 years ago

Since VSCode doesn't support cell tags (https://github.com/microsoft/vscode-jupyter/issues/1121), and we want the documentation to hide the code.

MaxGhenis commented 2 years ago

Actually looks like someone figured out a way: https://github.com/executablebooks/jupyter-book/issues/666#issuecomment-897817341

MaxGhenis commented 1 year ago

Ooh, here are instructions to do this programmatically: https://jupyterbook.org/en/stable/content/metadata.html?highlight=python#add-tags-using-python-code