kynan / nbstripout

strip output from Jupyter and IPython notebooks
Other
1.19k stars 95 forks source link

Respect keep_output when added to cell as a tag #117

Closed scottcode closed 4 years ago

scottcode commented 4 years ago

I really appreciate the functionality for marking certain cells for keeping output, as mentioned in #17 and #52. As far as I can tell, the "keep_output": true key-value pair needs to be placed at the top of the cell metadata object. It would be nice if it could also be specified in the object under the "tags" key.

The benefit of Tags is that they can be viewed directly for all notebook cells by selecting the View > Cell Toolbar > Tags. The Tags toolbar shows existing tags all at a glance without additional clicks. With the "Edit Metadata" toolbar, you have to click on each cell individually to figure out if it's already been marked for keep_output.

scottcode commented 4 years ago

My PR #120 only implements the functionality. Adding it to the documentation still needs to be done.