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

Feature: Support custom Bokeh resource loading #47

Closed
canavandl opened this issue Dec 2, 2018 · 0 comments · Fixed by #48
Closed

Feature: Support custom Bokeh resource loading #47

canavandl opened this issue Dec 2, 2018 · 0 comments · Fixed by #48

Comments

@canavandl
Copy link
Contributor

Uncomment only one, leave it on its own line:

type: bug

type: feature

It would be nice to allow users to specify their own Bokeh resource loading. I believe it would be possible to implement this by having the import chartify invocation defer to a previous call to bokeh.io.output_notebook.

This would enable users to:

  • keep notebook sizes small by loading BokehJS from the CDN (or other locations) and not inlining it
  • load only the required resources (ie not loading bokeh-widgets.min.js if it's not needed)

This would almost make chartify work in different notebook contexts, by letting users specify
output_notebook(notebook_type='zeppelin')

Example code:

# user specifies their own bokeh/notebook configuration
from bokeh.io import output_notebook
output_notebook()

# load chartify package into namespace but defer to above bokeh.io.output_notebook call
import chartify
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.

1 participant