kynan / nbstripout

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

Only output should be kept for keep_output and init_cell #52

Closed reidpr closed 7 years ago

reidpr commented 7 years ago

Currently, nbstripout ignores keep_output and init_cell cells entirely. However, this means that lots of stuff beyond the output stays, such as execution_count. I think keeping this does not meet the design goals, and it can cause Git conflicts.

Feature request: Treat these two types of cells normally, except keep the output.

kynan commented 7 years ago

Good idea! This could be addressed in #56

jpeacock29 commented 7 years ago

Added a patch for this in #56

jpeacock29 commented 7 years ago

Pull #56 should close this now.