An ipython notebook is a document that is read by the browser that contains both rich text and python code.
In scientific computing ipython notebooks are often used to perform an analysis some input data file that resides on the local file system.
Instead of manually pasting the full path of the file containing the data into a variable, would be convenient to be able to launch an open-file dialog in order to browse the local file system and select the file. The full path of the file should be returned in a variable (in python).
This can be achieved launching an open-file dialog from a GUI toolkit (i.e. QT). For an example see IPython Notebook: Open/select file with GUI (Qt Dialog).
However, using QT has some disadvantages. First it is an additional dependency. Second it requires enabling the QT gui integration in the notebook and this results in conflicts with the inline plots (see here).
The question here is, is it possible to obtain the full path using only Javascript?
EDIT: The answer posted below only returns the file name, not the full-path.