How could I get to know how large is an output of sime code which is shown in the cell of Jupyter ntb cell? Eg., if I have a plot:
import seaborn as sns
import numpy as np
sns.heatmap(np.arange(50).reshape(5,-1))
the size of the ntb file is 14 KB and using this approach I could determine the size without the output and/or always look at one cell (copy it out). But what if I want to know this from within the ntb? Ie how much space the output takes.
To be clear, I do not care about the actual size of the object, ie if I print an array, I do not care how much that array takes up, but rather how much takes up the text which is being printed out, by how much will the .ipynb
file grow.
Thanks.