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
Built Distribution
File details
Details for the file bokeh-resources-0.1.tar.gz
.
File metadata
- Download URL: bokeh-resources-0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f164e0a54f800808afb8f5cae4a9160b1362bbeecd8e2e1b103af342e8e4d48f |
|
MD5 | 702da18f9498bfd2ee7472e96fe93c59 |
|
BLAKE2b-256 | 71a12ee5dc55a275b40557f36710fd0501c91b2407c0697d597b5e2aa11b0529 |
Provenance
File details
Details for the file bokeh_resources-0.1-py3-none-any.whl
.
File metadata
- Download URL: bokeh_resources-0.1-py3-none-any.whl
- Upload date:
- Size: 1.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/59.6.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56bfe324ec825cc18f7cc0c37b1760ffb6c1391f8308a17c3843126e3d13d5bc |
|
MD5 | 2af3cd3eae7c965ae19812f91b252119 |
|
BLAKE2b-256 | 2849e962383187ee3351081379349cc7a7384a703737352a757a56a5ecfd6d68 |