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

%opts break after error #1463

Closed
basnijholt opened this issue May 19, 2017 · 2 comments · Fixed by #1465
Closed

%opts break after error #1463

basnijholt opened this issue May 19, 2017 · 2 comments · Fixed by #1465

Comments

@basnijholt
Copy link
Contributor

basnijholt commented May 19, 2017

Reproduce with

import holoviews as hv
hv.notebook_extension()
%opts Image [cmap='viridis']

then try:

%opts Image (cmap='viridis')

which will print:

Unexpected plot option 'cmap' for Image in loaded backend 'matplotlib'.

Possible keywords in the currently active 'matplotlib' backend are: ['apply_extents', 'apply_ranges', 'apply_ticks', 'aspect', 'bgcolor', 'cbar_padding', 'cbar_ticks', 'cbar_width', 'clipping_colors', 'colorbar', 'fig_alpha', 'fig_bounds', 'fig_inches', 'fig_latex', 'fig_rcparams', 'fig_size', 'final_hooks', 'finalize_hooks', 'fontsize', 'initial_hooks', 'invert_axes', 'invert_xaxis', 'invert_yaxis', 'invert_zaxis', 'labelled', 'logx', 'logy', 'logz', 'normalize', 'projection', 'show_frame', 'show_grid', 'show_legend', 'show_title', 'situate_axes', 'sublabel_format', 'sublabel_position', 'sublabel_size', 'symmetric', 'title_format', 'xaxis', 'xrotation', 'xticks', 'yaxis', 'yrotation', 'yticks', 'zaxis', 'zrotation', 'zticks']

If you believe this keyword is correct, please make sure the backend has been imported or loaded with the notebook_extension.
In [ ]:

@jlstevens
Copy link
Contributor

Thanks for reporting this.

It now seems to think the style option is a plot option for some reason. I'll need to investigate...

@jlstevens
Copy link
Contributor

Should be fixed in #1465.

Thankfully it was an easy fix of the options system for a change!

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

Successfully merging a pull request may close this issue.

2 participants