Running a bokeh server with Binder
This repository demonstrates how to run a Bokeh server from within Binder. To do so, we did the following things:
bokeh-appdirectory in the repo with a
main.pyfile in it. This is the application that will be served. We've added the Bokeh weather example as a demo.
bokehfor the viz and
jupyter_server_proxywhich we'll use to direct people to the port on which Bokeh runs. See
Added a custom server extension (
bokehserverextension.py) that will be run to direct people to the Bokeh app (which is run on a port)
postBuildto enable the
jupyter_server_proxyextension, then set up and enable our custom server extension for Bokeh.
Created a Binder link that uses
urlpathto point users to the port on which the Bokeh server will run:
https://mybinder.org/v2/gh/cvalencia09/bokeh/master?urlpath=/proxy/5006/bokeh-app https://mybinder.org/v2/gh/binder-examples/bokeh/master?urlpath=/proxy/5006/bokeh-app https://arturomoncadatorres.com/creating-a-shareable-bokeh-dashboard-with-binder/
When people click on the Binder link, they should be directed to the running Bokeh app.