I am attempting to plot data using Matplotlib within a jupyter notebook on an AWS-EMR instance. Matplotlib must be installed via a bootstrap action at instance start-up, which I have done successfully. I have also successfully installed Pandas in this way (and used it for various things in my notebook). The typical %matplotlib inline
does not work. (In fact, it appears that NO magic commands work on AWS-EMR notebooks. I suspect AWS has disabled these or it has something to do with the notebooks being "serverless.")
I have tried:
installing matplotlib==2.0.2 and using magic command
%matplotlib inline
(as mentioned above, magic commands seem not to work at all)installing matplotlib==1.5, installing ipympl, and using
import ipympl
. I don't receive errors using this method when trying to.show()
a plot, but neither does a plot show up. The cell runs in the notebook with no plot appearing. As far as I can tell,.show()
does nothing.