-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Added BokehRenderer.app method to create bokeh apps in scripts and notebooks #1283
Conversation
Great! All it needs is an example script in |
I'll just change the existing examples to use this. |
Makes sense. |
Updated the examples, ready to merge once tests pass. |
@@ -33,6 +33,9 @@ | |||
|
|||
Store.renderers['bokeh'] = BokehRenderer.instance() | |||
|
|||
if len(Store.renderers) == 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not check that the one available renderer is 'bokeh'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess I could but defining that renderer is literally the line above so it has to be bokeh.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is your suggestion this?
if list(Store.renderers.keys()) == ['bokeh']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose that's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You last post appeared before my reply. Either way is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, I would mention that in a script-level docstring at the top of the file. Same for the crossfilter app. It only needs to be one line explaining what these examples are supposed to show.
Thanks for fixing the |
Yes, player does not use BokehRenderer.app it's an example of creating a custom bokeh layout with custom widgets. |
Looks good. Merging. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Adds convenience method to create bokeh Apps from any holoviews object. In a script it simply returns the
doc
but when used with notebook option creates anApplication
instance which is displayed and returned.