TEChopra1000 opened a new issue #16449: Train Neural Network Python Tutorial - 
Plot Images code not working 
URL: https://github.com/apache/incubator-mxnet/issues/16449
 
 
   ## Description
   I was not able to get images to plot in **Train the neural network Python** 
tutorial found 
[here](http://mxnet.incubator.apache.org/api/python/docs/tutorials/getting-started/crash-course/4-train.html)
 as the tutorial is written. Some solutions are proposed below.
   
   ## Environment info (Required)
   
   I ran the recommended script but no environment information was returned 
after the Environment heading. Working on a MacBook Pro.
   
   Package used (Python/R/Scala/Julia):
   ----------Python Info----------
   Version      : 3.7.3
   Compiler     : Clang 4.0.1 (tags/RELEASE_401/final)
   Build        : ('default', 'Mar 27 2019 16:54:48')
   Arch         : ('64bit', '')
   
   ## Steps to reproduce
   (Paste the commands you ran that produced the error.)
   
   1. Follow the commands found in [this tutorial 
](http://mxnet.incubator.apache.org/api/python/docs/tutorials/getting-started/crash-course/4-train.html).
 
   2. enter code found in code box 3 one line at a time. The issue comes up for 
me when entering the line `display.set_matplotlib_formats('svg')`. The terminal 
changes mode after entering this command, and variables defines in previous 
commands are no longer accessible. 
   3. even when omitting the line above, I get the error about plt not being 
defined (see solution below). 
   
   ## What have you tried to solve it?
   
   1. to resolve the error message about `plt` not being defined I had to 
include `from matplotlib import pyplot as plt`
   2. I omitted the line `display.set_matplotlib_formats('svg')` from code 
block 3
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to