prevent plot from showing in jupyter notebook

后端 未结 6 2181
梦毁少年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-05 00:08

    I'm a beginner though,off the inline mode when you don't want to see the output in your notebook by:

    %matplotlib auto
    

    or:

    %matplotlib
    

    to use it back:

    %matplotlib inline
    

    more better solution would be to use:

    plt.ioff()
    

    which says inline mode off.

    hope it helps.

提交回复
热议问题