Open aimalz opened 3 years ago
So here is an example of someone who is doing what we want I think.: https://medium.com/@n.j.marey/my-experience-with-flask-and-bokeh-plus-a-small-tutorial-7b49b2e38c76
The issue is that I think it might require a bokeh-server.
After going through the bokeh docs and internet resources: it seems
AjaxDataSource
and its adapter to JSON. https://discourse.bokeh.org/t/ajaxdatasource/4482Looking at the Open Supernova Catalog and its GitHub might be useful.
This site talks about how to get our website on Heroku: https://medium.com/@blondiebytes/heroku-hosting-put-your-website-on-the-cloud-cdc8729a7e09 We would have to add a backend using node.js.
I think there is a way to embed a heroku deployed app into your website. So you deploy the bokeh in heroku then embed it in your website using iframe https://www.w3schools.com/tags/tag_iframe.asp
The plots in the sandbox embed the data in the HTML, which will be a problem for relevant PLAsTiCC data that's too big. We can start by investigating bokeh callbacks to solve the problem.