Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding python libraries to google datalab environment

I'm using google datalab on google cloud platform. Worked great on the first try and I love how easy it is to now run a jupyter notebook server in the cloud (faster than starting up a localhost server). It's fantastic.

But now I want to install python libraries not included in the basic datalab environment (specifically I need the Bokeh plotting library).

So I opened a google cloud shell from the google cloud console where I manage this jupyter notebook instance, installed miniconda and then the bokeh library. Everything ran without error (e.g. bokeh installs several dependencies along the way), but my jupyter notebook on datalab (which can import other libraries like numpy) still gives me a "no module named bokeh.plotting" error.

Any ideas? Thanks in advance.

like image 995
JHuw Avatar asked Oct 16 '15 15:10

JHuw


1 Answers

You can do this inside a notebook:

%%bash
pip install bokeh
like image 87
Graham Wheeler Avatar answered Sep 20 '22 13:09

Graham Wheeler