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

Enhancement request: hide all code by default #30

Open
leeclemmer opened this issue Jan 25, 2017 · 6 comments
Open

Enhancement request: hide all code by default #30

leeclemmer opened this issue Jan 25, 2017 · 6 comments
Milestone

Comments

@leeclemmer
Copy link

Would be great if I could just export/convert notebook to html/pdf and have option to hide all code/prompts globally, instead of having to set which cell to hide cell by cell.

@kirbs-
Copy link
Owner

kirbs- commented Jan 25, 2017

Yeah, this is on the enhancement list. I'll add it to the next release.

@leeclemmer
Copy link
Author

Awesome, thanks! Much appreciated :) Maybe to be a bit more specific: it be great if in the notebook I could see all the code, but when exporting it's all hidden. Thanks!

kirbs- added a commit that referenced this issue Feb 26, 2017
@BoPeng
Copy link

BoPeng commented May 23, 2017

Just a quick comment. I have tried to use hide code to generate better HTML output but found two problems (both are feature requests),

  1. Hide input and output in HTML, not in Jupyter, because often times we need to perform the analysis with all visible input and output cells, but only want to show certain results in HTML report.
  2. Hide all input and most output as default.
  3. Allow unhiding hidden input and output content in HTML format. This is hugely helpful because I can have a single report that is suitable for both as a report, and as an archive with all the details of the analysis.

In the end, we implemented our own show_output metadata method as follows:

  1. A keyboard shortcut Ctrl-Shift-O to toggle this metadata.
  2. A template is provided to output markdown and selected output as default, whiling having a Show More button to display all.

The implementation is only limited for SoS though.

Note that we thought of adding the features as an extension to hide code but had to give up because hide code does not support nbconvert 5.0+.

@kirbs-
Copy link
Owner

kirbs- commented May 27, 2017

Thanks for the feedback! I'm going to get around to the enhancements some time this summer.

@alanamarzoev
Copy link

Hi! What's the timeline like for the release of this enhancement?

@kirbs-
Copy link
Owner

kirbs- commented Oct 7, 2017

@alanamarzoev Should have this done in the next 4-5 weeks.

@kirbs- kirbs- added this to the 0.6.0 milestone Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants