Provide a main function to run bokeh commands.
main
The following are equivalent:
Running the bokeh command line script:
bokeh
bokeh serve --show app.py
Using python -m bokeh:
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"])
Execute the Bokeh command.
argv (seq[str]) – a list of command line arguments to process
None
The first item in argv is typically “bokeh”, and the second should be the name of one of the available subcommands:
argv
info
json
sampledata
secret
serve
static