i cant find a way to open a simple select file dialog. I would like to have a button called “load”, if pressed shows a open file dialog and returns after the file selection the full file path to a callback function.
my files are stored on the same machine as the bokeh server runs.
As of Bokeh 0.11.1 there is no built-in file chooser dialog, so this would represent new development. I did not see an existing feature request issue on our tracker, so I'd encourage you to go there and add a feature request for this feature:
In the mean time, it is possible to extend Bokeh with your own custom models, e.g. to wrap some JavaScript library you like, and integrate it with Bokeh. Unfortunately this is a little bit involved, and writing more docs about this specific capability is still a work in progress. However I can point you to an example:
And if you want to try and make a custom model for some JS file chooser dialog, we would definitely try to answer any questions.
Barring that, the best immediate suggestion I can offer is to leverage the existing DataTable widget somehow, by populating it with paths and responding to selection events on it.
i cant find a way to open a simple select file dialog. I would like to have a button called "load", if pressed shows a open file dialog and returns after the file selection the full file path to a callback function.
my files are stored on the same machine as the bokeh server runs.
Thank you very much for your detailed answer. I appreciate it a lot.
I was thinking about writing a widget but could not find any information. Thank you very much for the example.
For now I will go for the DataTable - Thank you for that particular hint.
Greetings
Ivo
···
Am Samstag, 16. April 2016 01:41:05 UTC+2 schrieb Bryan Van de ven:
Hi Ivo,
As of Bokeh 0.11.1 there is no built-in file chooser dialog, so this would represent new development. I did not see an existing feature request issue on our tracker, so I’d encourage you to go there and add a feature request for this feature:
In the mean time, it is possible to extend Bokeh with your own custom models, e.g. to wrap some JavaScript library you like, and integrate it with Bokeh. Unfortunately this is a little bit involved, and writing more docs about this specific capability is still a work in progress. However I can point you to an example:
And if you want to try and make a custom model for some JS file chooser dialog, we would definitely try to answer any questions.
Barring that, the best immediate suggestion I can offer is to leverage the existing DataTable widget somehow, by populating it with paths and responding to selection events on it.
i cant find a way to open a simple select file dialog. I would like to have a button called “load”, if pressed shows a open file dialog and returns after the file selection the full file path to a callback function.
my files are stored on the same machine as the bokeh server runs.
Thanks for your help
Ivo
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].