python save the whole notebook as long picture code example
Example 1: save image from jupyter notebook
plt.savefig('output.png', dpi=300, bbox_inches='tight')
Example 2: save image from jupyter notebook
fig.tight_layout()
plt.savefig('output.png', dpi=300)