I'm trying to run Jupyterhub on a Ubuntu 14.04 VM. I've successfully done this before on a similar Amazon EC2 instance, but for some reason it's not cooperating with me here.
I've installed both the Python 27 and Python 35 Anaconda packages, so I expect to be able to access libraries like matplotlib
and numpy
.
When I use Python from the command line, I can successfully import matplotlib
:
$ python3
>>> import matplotlib
>>> # no error
However, when I try and import matplotlib
from an iPython notebook inside of Jupyterhub, I'm told no such module exists:
import matplotlib
-----------------------
ImportError
...
ImportError: No module named 'matplotlib'
Why does Jupyterhub not recognize the module despite my being able to use it through other means?