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
Perhaps just clear the axis, for example:
fig= plt.figure() plt.plot(range(10)) fig.savefig("save_file_name.pdf") plt.close()
will not plot the output in inline mode. I can't work out if is really clearing the data though.
inline