Save a modified ColumnDataSource

Howdy y’all,

I’m trying to use flask and bokeh to build a web application where users can manually classify data. The UI right now makes use of a custom javascript callback to render changes visually, but I’m not sure how to use javascript to send a post request back to my flask app to log the user’s activity.

An alternate solution I would consider is to convert the ColumnDataSource to a .csv file that the user can download once they’ve finished with a particular page, but I’m not sure how to access the ColumnDataSource after the api call in flask.

I posted this question in stack overflow with some sample code of what I’m trying to accomplish.

https://stackoverflow.com/questions/47147518/save-modified-columndatasource

Thanks!

Alan

Hi,

I’ve answered on SO.

Regards,

Eugene

···

On Tuesday, November 7, 2017 at 6:29:29 AM UTC+7, Alan Leggitt wrote:

Howdy y’all,

I’m trying to use flask and bokeh to build a web application where users can manually classify data. The UI right now makes use of a custom javascript callback to render changes visually, but I’m not sure how to use javascript to send a post request back to my flask app to log the user’s activity.

An alternate solution I would consider is to convert the ColumnDataSource to a .csv file that the user can download once they’ve finished with a particular page, but I’m not sure how to access the ColumnDataSource after the api call in flask.

I posted this question in stack overflow with some sample code of what I’m trying to accomplish.

https://stackoverflow.com/questions/47147518/save-modified-columndatasource

Thanks!

Alan