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: Sequence[str]) None[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: