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.

secret — Bokeh 0.12.14 documentation

secret

Generate new secret keys that can be used by the Bokeh server to cryptographically sign session IDs.

To generate a new secret key for use with Bokeh server, execute

bokeh secret

on the command line. The key will be printed to standard output.

The secret key can be provided to the bokeh serve command with the BOKEH_SECRET_KEY environment variable.

Warning

You must keep the secret secret! Protect it like a root password.

class Secret(parser)[source]

Subcommand to generate a new secret key.

invoke(args)[source]
name = 'secret'

name for this subcommand