aws-solutions-library-samples / guidance-for-training-an-aws-deepracer-model-using-amazon-sagemaker

DeepRacer workshop content. This Guidance demonstrates how software developers can use an Amazon SageMaker Notebook instance to directly train and evaluate AWS DeepRacer models with full control
https://aws.amazon.com/solutions/guidance/training-an-aws-deepracer-model-using-amazon-sagemaker/
MIT No Attribution
1.25k stars 713 forks source link

NameError: name 'plt' is not defined #46

Closed BernhardLenz closed 2 years ago

BernhardLenz commented 4 years ago

When running jupyter notebook 'DeepRacer Log Analysis.ipynb' I get below error in a Windows environment (Python 3.8.1).

NameError                                 Traceback (most recent call last)
<ipython-input-2-fd8b8819ef67> in <module>
      1 # Plot the results
----> 2 fig, ax = plt.subplots(figsize=(20,10))
      3 plot_points(ax, waypoints[:-1,0:2])
      4 plot_points(ax, waypoints[:-1,2:4])
      5 plot_points(ax, waypoints[:-1,4:6])

NameError: name 'plt' is not defined

See full screen print at https://www.screencast.com/t/kvOtMEJf

The same works fine on MacOS (Python 3.7.3). Has anybody experienced the same problem and found a work around?