This docs on this page refers to a PREVIOUS VERSION. For the latest stable release, go to https://docs.bokeh.org/

Archived docs for versions <= 1.0.4 have had to be modified from their original published configuration, and may be missing some features (e.g. source listing)

All users are encourage to update to version 1.1 or later, as soon as they are able.

bokeh.application.handlers.notebook — Bokeh 1.0.2 documentation

bokeh.application.handlers.notebook

Provide a Bokeh Application Handler to build up documents by running the code from Jupyter notebook (.ipynb) files.

This handler is configured with the filename of a Jupyter notebook. When a Bokeh application calls modify_doc, the code from all the notebook cells is collected and executed to process a new Document for a session. When the notebook code is executed, the Document being modified will be available as curdoc, and any optionally provided args will be available as sys.argv.

class NotebookHandler(*args, **kwargs)[source]

A Handler that uses code in a Jupyter notebook for modifying Bokeh Documents.

__init__(*args, **kwargs)[source]
Keywords:
filename (str) : a path to a Jupyter notebook (“.ipynb”) file