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.command.bootstrap — Bokeh 0.12.14 documentation

bokeh.command.bootstrap

Provide a main function to run bokeh commands.

The following are equivalent:

  • Running the bokeh command line script:

    bokeh serve --show app.py
    
  • Using python -m bokeh:

    python -m bokeh serve --show app.py
    
  • Executing main programmatically:

    from bokeh.command.bootstrap import main
    
    main(["bokeh", "serve", "--show", "app.py"])
    
main(argv)[source]

Execute the Bokeh command.

Parameters:argv (seq[str]) – a list of command line arguments to process
Returns:None

The first item in argv is typically “bokeh”, and the second should be the name of one of the available subcommands: