Reputation: 93
I would like to suppress all the output on my jupyternotebook.
I have learned that by putting %%capture magic keyword on the top of a cell, that cell won't produce any output. I would like to know how to apply this "%%capture" on to all the cells without physically writing them down on each cell.
FYI. I know how to clear output of all cells in jupyternotebook. I would like to know how to "suppress" the output. If you know any other way than, applying "%%capture" to all the cells, please let me know.
Thank you in advance.
Upvotes: 1
Views: 1661
Reputation: 9209
I don't think there is any way to meet your requirements in one step. However, I think one more step after operation can achieve the same effect:
We can use clear outputs of all cells
. (This is only a clear output result, but it does not affect the cache of the cells have been run.)
Tips:
%% capture
can store the object in your namespace.
You can refer to this page for more details about %% capture
Upvotes: 2