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

plugin system for bokeh / custom apps #364

Closed
hhuuggoo opened this issue Feb 17, 2014 · 0 comments
Closed

plugin system for bokeh / custom apps #364

hhuuggoo opened this issue Feb 17, 2014 · 0 comments

Comments

@hhuuggoo
Copy link
Contributor

related to #339, we need a way to plug python and javascript code into Bokeh

building applets inside Bokeh

The user would pass a python library into the bokeh server, as well as a directory of javascript/css files which we add a new static route to. The user also places an assets.json file in that directory which we read, and we add all those resources to the page. The python/js libs would define new models/views, and the user would construct them as they normally construct plots, and the applet would show up in the bokeh server

There is an extra complication in that it would be nice to debug your applet even when the server is running in splitjs mode. That should be easily solveable by having a global object that triggers an event when the bokeh library is loaded, which user plugins can trigger off of.

building bokeh applets inside the IPython notebook

output_notebook would have to be made aware of the javascript/css path, and assets.json file. these are then concatenated and funelled into the notebook, along with bokeh.js Everything else should work as normal

working with bokeh inside an external application

  • generate an embed snippet (I believe we have these for server and non-server plots), and embed that in the page
  • Bokeh should be extended so that the user can retrieve bokeh objects by name, we can trigger some event when a specific plot is loaded, the user can listen for that event and do whatever they want.
  • I think this is pretty much the same for bokeh-server and non-server plots, except that you could modify the bokeh objects in your server if you wanted to.
  • we need to bake the concept of read/read-write permissions into all our embedding functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants