dvgodoy / PyTorchStepByStep

Official repository of my book: "Deep Learning with PyTorch Step-by-Step: A Beginner's Guide"
https://pytorchstepbystep.com
MIT License
834 stars 310 forks source link

Everything works locally, except figure graphics #7

Closed minertom closed 3 years ago

minertom commented 3 years ago

Hi, My usual practice when learning from python notebooks is to get everything that would work in the notebook to work locally.

What program is used to generate the figures? Clearly, something not local in the notebook. Perhaps something called from google colab?

I have installed everything properly and the data output is correct. However, I can't get the figures to display, locally. I did install matplotlib but I don't know how to get the same graphics to generate as are generated via the python notebook .

figure1(x_train, y_train, x_val, y_val) gives me

(<Figure size 864x432 with 2 Axes>, (<matplotlib.axes._subplots.Axes3DSubplot at 0x7fc942d92fd0>, <matplotlib.axes._subplots.AxesSubplot at 0x7fc9430497d0>))

Just like it does in the jupyter notebook but with no picture. I know that I have to get some kind of graphical engine going as is going in the notebook but I don't know which one to start.

I realize that this is a pretty minor issue.

Thank You Tom