Jupyter: Programmatically Clear Output from all Cells when Kernel is Ready
问题 I have a question on how to programmatically clear\clean the output from all the Cells in my Jupyter notebook after notebook is done loading (when Kernel is ready), and prior to the user, myself, manually executing code. Basically, I would like the notebook to look clean when it is done loading, and I would like to do it automatically. How can I impose a command like clear_output() from a single initialization cell on to all other cells in the notebook? Thank you. 回答1: For a trusted notebook