Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rekado opened this issue Jun 5, 2023 · 0 comments
Open

Comments

@rekado
Copy link

rekado commented Jun 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant