5
votes

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.

1
Were you able to install via conda, or only pip per the below answer? I'm looking for a conda solution: stackoverflow.com/questions/47025059/…Max Ghenis

1 Answers

5
votes

You can do this inside a notebook:

%%bash
pip install bokeh