On Tue, Aug 2, 2016 at 2:52 AM, <[email protected]> wrote:

> Hi Hai,
>
> >>you can check examples from ipywidgets:
> https://github.com/ipython/ipywidgets/tree/master/docs/source/examples
>
> Thanks for responding. I tried the 'File Upload WIdget' example mentioned
> here. Unfortunately an html5/js based file-browser would still not give me
> the relative path or absolute path of the selected file. I don't want to
> load the file. I just need to get the path of the select the file.
>
>
I am not sure if you can even do that in Javascript (for security reason).

Hai


>
> I also tried the file-browser example mentioned in 
> https://github.com/jupyter-attic/jupyter-js-ui
> . <https://github.com/jupyter-attic/jupyter-js-ui>
> I did the  'npm build' commands, and 'cd'-ed to the 'examples/filebrowser'
> directory, and did 'python main.py'
> <https://github.com/jupyter-attic/jupyter-js-ui>I am able to get the
> files listed in a web-page as shown below.
>
>
>
>
>
> *But I want to show them in a pop-up window*
> -thanks
> -koshy
>
>
> On Sunday, July 31, 2016 at 9:49:01 AM UTC-7, Hai Nguyen wrote:
>>
>>
>>
>> On Sun, Jul 31, 2016 at 5:43 AM, <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I would like to implement a file browser dialog in a jupyter notebook.
>>>
>>
>> you can check examples from ipywidgets:
>> https://github.com/ipython/ipywidgets/tree/master/docs/source/examples
>>
>> Hai
>>
>>
>>>
>>> ie: when some widget button is pressed a file-browser dialog pops up
>>> over the browser, and the user selects a file.
>>>
>>> I have tried a few methods so far, but I am not satisfied with any of
>>> these
>>>
>>> 1)
>>> I have tried it with a pure javascript/html code using the construct  <input
>>> type="file">.  But using this method I can get just the name of the
>>> file selected. not even the relative path, or let alone the absolute path
>>> of the file.
>>>
>>> 2)
>>> I have implemented a solution using PySide, a python binding for QT.
>>> Using this solution, I can get the file path. But QT brings a whole lot of
>>> baggage to software which I would like to avoid.
>>>
>>> 3)
>>> Is there a node-js based solution, Is there any sample code for such a
>>> file-browser?
>>> I took a look at https://github.com/jupyter-attic/jupyter-js-ui. But I
>>> am having a hard time trying to come up with some working version of sample
>>> code.
>>>
>>> -thanks
>>> -koshy
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Project Jupyter" 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/d/msgid/jupyter/8b313f6e-4a56-4f1c-bd90-b41993be9e9f%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jupyter/8b313f6e-4a56-4f1c-bd90-b41993be9e9f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" 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/d/msgid/jupyter/6fa13fb1-e912-45c2-bbe8-f03d201ba905%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/6fa13fb1-e912-45c2-bbe8-f03d201ba905%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" 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/d/msgid/jupyter/CAFNMPM-gA4SLokp8L3xfMrLrWhdz9GoKx9k8RoQznrq%3DCBvGeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to