Using Jupyter, i'm facing this issue:
I declare several matplotlib figures in cell 1 with an identifier using num
attribute
I want to get the figures back in cell 2 but it seems to be erased even when using the identifier.
Cell n°1
for i in range(2):
plt.figure(i, figsize=(15,5))
plt.plot([0,1], [0,1])
print(plt.get_fignums())
#Output
[0, 1]
Cell n°2
print(plt.get_fignums())
#Output
[]
Can someone explain this behaviour and how to recall my figure from cell n°1 ?