Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed Bokeh server in Django application

From what I read the dynamic and big data rendering capabilities of Bokeh are accessible by use of the bokeh-server.

In Bokeh documentation there is a brief mention of embedding the bokeh-server in a Flask application using the blueprint api. This option retains all of the Bokeh's dynamic and big data rendering capabilities.

I would like to do the same for a django1.7 application.

Has this been done?

If so are there any examples?

like image 202
Rubber Duck Avatar asked Dec 17 '14 07:12

Rubber Duck


1 Answers

No need to reinvent.

  • bokeh-server is a webserver and can listen on arbitrary port.
  • you can have your django webserver listen on some other arbitrary port.
  • ... and integrate the two:
    • have redirects from django to bokeh-server, or
    • webserver in front, e.g. nginx which does reverse-proxy.
like image 175
dnozay Avatar answered Sep 24 '22 15:09

dnozay