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

Document and raise better exceptions about backend loading #999

Closed
relativistic opened this issue Nov 30, 2016 · 7 comments
Closed

Document and raise better exceptions about backend loading #999

relativistic opened this issue Nov 30, 2016 · 7 comments
Milestone

Comments

@relativistic
Copy link

relativistic commented Nov 30, 2016

When I try to use the %%output cell magic to switch to the bokeh backend, I get the error "Error: list index out of range".

screen shot 2016-11-30 at 11 10 12 am

@jlstevens
Copy link
Contributor

jlstevens commented Nov 30, 2016

I believe you just need to load the bokehJS. At the top of the notebook, try:

import holoviews as hv
hv.notebook_extension('matplotlib', 'bokeh')

Then it should work as long as bokeh is installed.

One thing we should do is improve the error message here so thanks for reporting this!

@philippjfr
Copy link
Member

Correct, definitely needs a better exception though. There's a few issues like this now that the plotting backends aren't imported by default, so we should catalogue them and make sure to raise better exceptions.

@relativistic
Copy link
Author

Ah, yes, that fixed it. Thanks!

It might also be a good idea to be explicit this is required "Bokeh Backend" page of the docs, where this is described. I had assumed from the language there that you could use the cell output magic after only loading the matplotlib option in the hv.notebook_extension. Probably obvious to those who are more familiar with the way this kind of thing works, but it wasn't for me.

@philippjfr philippjfr changed the title Error when switching specific cell to bokeh backend Document and raise better exceptions about backend loading Nov 30, 2016
@philippjfr philippjfr reopened this Nov 30, 2016
@philippjfr
Copy link
Member

Reopening and repurposing this issue.

@jlstevens
Copy link
Contributor

Should be easy enough to fix so I'm assigning this as something to fix by 1.7.

@philippjfr
Copy link
Member

The output magic error message was improved, closing.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants