How to setup a Bokeh notebook with an Anaconda VirtualEnv
$ cd /localstorage/conda/bin
$ source activate
(root) $ conda info -e
# conda environments:
#
root * /localstorage/conda
(root) $
Because bokeh works with Python=2.7 we will create a new env with specificly this version.
$ conda create -n bokeh27 bokeh python=2.7
[...]
[ COMPLETE ]|####| 100%
#
# To activate this environment, use:
# > source activate bokeh
#
# To deactivate this environment, use:
# > source deactivate bokeh
#
(root) $
Here we wanted to run this example bokeh/examples/app/sliders.py that we download into /tmp dir.
(root) $ source activate bokeh27
(bokeh) $ bokeh serve --host *:5006 --port 5006 /tmp/sliders.py
2016-11-24 16:32:11,546 Starting Bokeh server version 0.12.3
2016-11-24 16:32:11,546 Host wildcard '*:5006' can expose the application to HTTP host header attacks. Host wildcard should only be used for testing purpose.
2016-11-24 16:32:11,548 Starting Bokeh server on port 5006 with applications at paths ['/sliders']
2016-11-24 16:32:11,548 Starting Bokeh server with process id: 16865
With parameter ’–host *:5006’ we allow every host to access our ‘bokeh server’ on port 5006.