I am considering using bokeh to create a data viewer for TDMS files. I plan to read the files using npTDMS. The files will be on the local file system. I would like to include a widget allow the user to select a file to load. I not familiar with js, but have used JFileChooser previously. I didn’t see such functionality in the bokeh docs. Does it exist? If not, how difficult would it be to include and how would that be done?
Bokeh does not have a file chooser widget built in. However there are still a few options:
There are any number of JS file chooser widgets, and with "Bokeh plus a little JavaScript" one of these could be integrated with a Bokeh visualization. A fairly sophisticated example of using Bokeh with some custom JS is here:
What you want would be much simpler unfortunately I'm not aware of a more basic example to point you at. But we are happy to try and answer any questions.
Additionally, as of Bokeh 0.11 (to be released January 6) it's possible for users to extend Bokeh with their own new model classes, so that anyone can add new widgets, etc. without having to modify the core BokehJS library. An example of that is here:
I am considering using bokeh to create a data viewer for TDMS files. I plan to read the files using npTDMS. The files will be on the local file system. I would like to include a widget allow the user to select a file to load. I not familiar with js, but have used JFileChooser previously. I didn't see such functionality in the bokeh docs. Does it exist? If not, how difficult would it be to include and how would that be done?