FileChooser

Hello,

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?

Thank you

Hi Matt,

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:

  https://github.com/bokeh/bokeh/tree/master/examples/embed/spectrogram

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:

  https://github.com/bokeh/bokeh/blob/master/examples/glyphs/custom.py

If you'd like to try a preview release for Bokeh 0.11, you can see installation instructions here:

  http://bokeh.pydata.org/en/latest/docs/installation.html#developer-builds

Bryan

···

On Dec 9, 2015, at 8:49 AM, [email protected] wrote:

Hello,

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?

Thank you

--
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].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e03f3650-589b-4936-adda-ffb494ed93de%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.