Upload a CSV file and read it in Bokeh Web app

后端 未结 2 1540
借酒劲吻你
借酒劲吻你 2021-01-11 16:06

I have a Bokeh plotting app, and I need to allow the user to upload a CSV file and modify the plots according to the data in it. Is it possible to do this with the availabl

2条回答
  •  北海茫月
    2021-01-11 16:40

    As far as I know there is no widget native to Bokeh that will allow a file upload.

    It would be helpful if you could clarify your current setup a bit more. Are your plots running on a bokeh server or just through a Python script that generates the plots?

    Generally though, if you need this to be exposed through a browser you'll probably want something like Flask running a page that lets the user upload a file to a directory which the bokeh script can then read and plot.

提交回复
热议问题