Skip to content
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

Hiding messy code cells by default #6

Open
brian-rose opened this issue Jan 23, 2020 · 3 comments
Open

Hiding messy code cells by default #6

brian-rose opened this issue Jan 23, 2020 · 3 comments

Comments

@brian-rose
Copy link
Owner

One of the nice features of JupyterBook is the ability to hide cells in the rendered html, but provide a button to reveal if the user wants to see it:
https://jupyterbook.org/features/hiding.html

This is exactly the right feature to make some of the more "narrative" parts of my notes easier to read while preserving the full reproducibility.

Need to go through and implement this in lots of places (and mostly include a brief tutorial on it in the preamble).

@brian-rose
Copy link
Owner Author

This is now implemented in a few notebooks:

Need to install the JupyterLab Cell Tags extension in order to add the required "hide_input" tag. It's possible but annoying to add the tag manually in a text editor.

@brian-rose
Copy link
Owner Author

Update: this is still a good idea and I should do more of it.

The updated link to the docs is:
https://jupyterbook.org/interactive/hiding.html

@brian-rose
Copy link
Owner Author

Updated reference to JupyterBook docs:

https://jupyterbook.org/en/stable/interactive/hiding.html#hide-code-cell-content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant