prevent plot from showing in jupyter notebook

后端 未结 6 2185
梦毁少年i
梦毁少年i 2020-12-04 23:19

How can I prevent a specific plot to be shown in Jupyter notebook? I have several plots in a notebook but I want a subset of them to be saved to a file and not shown on the

6条回答
  •  伪装坚强ぢ
    2020-12-04 23:55

    To prevent any output from a jupyter notebook cell you may start the cell with

    %%capture
    

    This might be usefull in cases all other methods shown here fail.

提交回复
热议问题