Warning

You are reading the documentation related to the development version. Go here if you are looking for the documentation of the stable release.

spectrochempy.FileSelector

class FileSelector(done_callback=None, path=None, filters=None)[source]

IPyWidgets interface for picking files.

The current path is stored in ` .path` and the current selection is stored in ` .value` .

Parameters
  • done_callback (function) – Called when the tick or cross buttons are clicked. Expects signature func(path, ok=True|False).

  • filters (list of str or None) – Only show files ending in one of these strings. Normally used for picking file extensions. None is an alias for [‘’], passes all files.

Examples using spectrochempy.FileSelector