Backend-specific option ignored
See original GitHub issueALL 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Actually,
Store
is exposed at the top level and I would be happy with this context manager living there: