Skip to main content

Jupyter extension to serve bokeh resources (js and css files).

Project description

bokeh-resources

Bokeh (https://bokeh.org/) Python plotting library has two main modes for serving static content: CDN and inline.

  • 'CDN' mode needs internet connection every time you open the notebook

  • 'inline' mode increases size of ipynb files by 6Mb

This extension allows to serve bokeh files locally thus keeping the size of ipynb files small and not require internet connection.

Installation:

pip install bokeh-resources

Then run install.py to install the extension to jupyter and to create the symlink (see 'Updating' below)

Usage:

In bokehlab:

%bokehlab local

In bokeh:

from bokeh.io import output_notebook
from bokeh.resources import Resources
output_notebook(Resources('server', root_url='/nbextensions/bokeh_resources'))

Updating:

The extension creates a symlink (or a directory junction on Windows). This means that it is resilient to bokeh updates (= the extension does not need to be updated when the bokeh is updated to next version).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bokeh-resources-0.1.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

bokeh_resources-0.1-py3-none-any.whl (1.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page