Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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