Skip to content

Instantly share code, notes, and snippets.

@ICBacon
Forked from tonyfast/.readme.md
Last active August 29, 2015 14:26
Show Gist options
  • Save ICBacon/2e3742b04d7b4b89fbb0 to your computer and use it in GitHub Desktop.
Save ICBacon/2e3742b04d7b4b89fbb0 to your computer and use it in GitHub Desktop.

Bokeh in Jupyter notebooks

The output_notebook uses the INLINE method to load the Javascript and CSS libraries for Bokeh. The INLINE resource allows a Bokeh plot to be rendered without an internet connection.

Alternatively, the CDN resource can be used if an internet connection is available.

The INLINE resource is too large to render on Github Gists thereby limiting the online editting abilities of the gist.

Comparision of resources

Notebook Version File Size
INLINE 1713034
CDN 210484

Importing with INLINE

from bokeh.io import output_notebook
output_notebook()

Importing with CDN

from bokeh.io import output_notebook
from bokeh.resources import CDN
output_notebook(resources=CDN)

GrapeFruit is a pure Python module that let you easily manipulate and convert color information. Its Primary goal is to be natural and flexible.

The original version is Python 2.

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment