question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Backend-specific option ignored

See original GitHub issue

ALL software version info

holoviews: 1.14.3 matplotlib: 3.4.2 bokeh: 2.3.2

Description of expected behavior and the observed behavior

Disclaimer: I’m a new user and I had to dive straight pretty deep to support my use case, API misuse is not unlikely.

When setting backend-specific options for a non-default backend, the calls to options() seem to override each-other.

Complete, minimal, self-contained example code that reproduces the issue

import holoviews as hv
backend = 'bokeh'
# If the backend that is actually used is the default (i.e. bokeh), the bug disappears
hv.extension('matplotlib', 'bokeh')
print(hv.Store.current_backend)

# The 2nd options() call seems to override the first one
x = hv.Curve([1,2,3]).options(interpolation='steps-pre', backend=backend).options(color='red', backend=backend)
hv.output(x, backend=backend)

# When setting both options at once, the bug disappears
x = hv.Curve([1,2,3]).options(interpolation='steps-pre', color='red', backend=backend)
hv.output(x, backend=backend)

Screenshots or screencasts of the bug in action

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
douglas-raillard-armcommented, Jun 8, 2021

I’ll see what I can do wrt to PR, as there is a bunch of other things I’d like to give a go at fixing. It may take a (long) while though, as I need to seek legal approval from my company first.

1reaction
jlstevenscommented, Aug 5, 2021

Actually, Store is exposed at the top level and I would be happy with this context manager living there:

with hv.Store.backend('bokeh'):
   ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid keys in options dictionary are silently ignored (but ...
The second one produces a plot, but the (invalid) fontsize option labels is silently ignored. Instead, it should at least print a warning....
Read more >
1480251 – unsupported backend-specific options quietly accepted ...
Bug 1480251 - unsupported backend-specific options quietly accepted for hostdev/user/direct ... Expected results: hotplug failed or ignore the setting, ...
Read more >
Command-line options — Agda 2.6.2 documentation
See Compilers for backend-specific options. ... Ignore all interface files, including builtin and primitive modules; only use this if you know what you...
Read more >
Configuration File (DS CONF) Format and Configuration Options
SDBM backend-specific section: Contains configuration options that apply to the ... Anything following the pound sign (#) will be ignored, including any ...
Read more >
[Qemu-devel] [PATCH 05/51] audio: -audiodev command line ...
This patch adds documentation of an -audiodev command line option, ... + +Backend specific options are: + address@hidden @option + ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found