I can't claim it's the best way but I use the following:

pip install nbstripout
nbstripout --install

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/1a5afb5c-5e94-4c60-bfe1-8aefd0220077%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to