bokeh.command.bootstrap¶
Provide a main function to run bokeh commands.
The following are equivalent:
Running the
bokehcommand line script:bokeh serve --show app.py
Using
python -m bokeh:python -m bokeh serve --show app.py
Executing
mainprogrammatically:from bokeh.command.bootstrap import main main(["bokeh", "serve", "--show", "app.py"])
-
bokeh.command.bootstrap.main(argv)¶ Execute the Bokeh command.
Parameters: argv (seq[str]) – a list of command line arguments to process Returns: None The first item in
argvis typically “bokeh”, and the second should be the name of one of the available subcommands: