bokeh.command.bootstrap — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: 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"])

`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 `argv` is typically “bokeh”, and the second should be the name of one of the available subcommands:

  - html
  - info
  - json
  - png
  - sampledata
  - secret
  - serve
  - static
  - svg