When installing this library using
sudo apt-get install python3-matplotlib
and trying to execute the file, errors are seen
Python3 has problems with this so instead install this library using
sudo apt-get install python-matplotlib
When you have this, Restart the Box (Project->Restart Box) and then execute the file using
python lesson1.py
(you will see some warnings but they don't stop it working)
And then Preview the project (using Box URL) to see something similar to