-
Notifications
You must be signed in to change notification settings - Fork 6
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
Hide input cells of notebooks by default #838
Comments
This is a really good idea - would it be possible to do 1. with defaults set as described in 2.? Also, if for the public, it would be nice to have some mode in which most of the rest of the project can be hidden and just the notebook content displayed. |
After a little investigation, I realized that this is already possible. Our notebook render looks for notebook and cell metadata to control this. If the notebook has Further, papermill has flag
My vote is for 2. |
+1 for solution number 2 |
Can we make the hiding on by default but provide an option to un-hide? Often it is useful and desirable to see the code. |
We could, but I want to keep the UI and possible interactions as simple as possible. I do not want to have the ability to show/hide each individual cell. I think this should be a setting for the whole notebook.
What I like about 1 is that it keeps the UI clean and lets the notebook author have full control over this behavior. I do understand the utility of 2., but I wonder what % of our users will benefit from this. |
I fully agree that the default should be up to the author. But allowing the user to override it if they want seems not that far-fetched (on the notebook-level, not cell-level). Otherwise if I want to quickly copy-paste a snippet I have to 1. find the notebook, 2. realize I can't see the code, 3. clone the project or open the notebook in gitlab. 2. & 3. seem unnecessary. |
Show the code visibility switch as a header. Fix #838
Use outline buttons and semi-bold for the label. Fix #838
Show the code visibility switch as a header. Fix #838
Use outline buttons and semi-bold for the label. Fix #838
Extract the code visibility form as a separate component. Fix #838
Provide a switch for changing code visibility. Fix #838
Provide a switch for changing code visibility. Fix #838
Provide a switch for changing code visibility. Fix #838
Provide a switch for changing code visibility. Fix #838
Motivation
Many notebooks are designed to be viewed by a public that might not care about the code. It should be possible to show notebooks with input cells hidden.
Proposal
All notebooks should have a radio-button-type interaction to select whether the input cells are shown or not. For the default behavior, there are two options:
Option 1 is more powerful, but a bit more work to implement, and adds more cognitive load on the user
Option 2 is very easy to implement, but could seem a bit arbitrary unless it is clearly documented and explained.
Context
The text was updated successfully, but these errors were encountered: