I think there is a deeper question, Are you trying to get a file path for which machine : - The machine that host the kernel, and I guess relative to the kernel cwd (a) - The machine that host the server and relative to the notebook location on the server (b) - the user web browser (c), [not sure relative to what]
Even if these 3 are potentially on the same machine, the possibilities are different, the meaning are different, and from previous discussion you seem to not really see the difference. Widgets and QT provides (a), <input type="file"> provides (c) , and https://github.com/jupyter-attic/jupyter-js-ui. provide (b). You need to define clearly which use case you want to get a clear answer. -- M On Tue, Aug 2, 2016 at 10:18 AM, Thomas Kluyver <[email protected]> wrote: > On 2 August 2016 at 18:11, Hai Nguyen <[email protected]> wrote: >> >> I am not sure if you can even do that in Javascript (for security reason). > > > As far as I know you cannot get the path of a file directly in Javascript. > You would have to make a file picker that communicates with the server to > list directory contents and create a path. > > -- > 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/CAOvn4qgYPvErNLGETxgydc7i3LN5LG%2Bw-%2BLUPCMK%2B9Fq6%2BvFWQ%40mail.gmail.com. > > 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/CANJQusW7Vb4R-VwLu88RFpnYC-BMNf9z1bi34S5imwOAALApzw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
