Why matplotlib not work after converting from ipydb to py?

Hi, I am trying to convert the lesson1.ipynb to lesson1.py, and run in my macos.
I have installed/configured conda, theano, keras, etc. I could train the model, everything looks ok, except I could not see matplotlib output.
See my dropbox links:
https://www.dropbox.com/s/kmwnjeniqqueuzh/lesson1.py?dl=0
https://www.dropbox.com/s/j2y0x5mrp28vwii/vgg16.py?dl=0
https://www.dropbox.com/s/y66jcllwdwmjxzs/utils.py?dl=0

As comparison, this py file runs well in my local mac, and I could see the graphical output, that means my matplotlib is installed/configured well.

Can you try adding plt.show() after calling plots?

Cool, it works, thank you very much.

1 Like