Skip to content

argparse needs special handling of bokeh args for bokeh 2.4.3 or later #58

@rekado

Description

@rekado

When building with a slightly more recent version of bokeh (2.4.3 instead of 2.1.0) bulkvis.py needs to handle the Serve.args specially, e.g. with code like this:

from bokeh.command.subcommand import Argument
from bokeh.util.dataclasses import entries

...

    if isinstance(opts, Argument):
      opts = dict(entries(opts))

This way the use of add_argument will work even though the Serve.args are wrapped in bokeh's Argument class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions