Regarding the Qt based solution for file-browser
0)
I 'ssh -X' to my dev station from my pc. All the activity is happening in
my dev station.
1)
when I run my note-book with jupyter, I press a button and it expectedly
which launches a pop-up file-browser dialog.
2)
But when I run jupyter-hub and use python 2.7 kernel to run my notebook,
I press the button and the kernel dies with the error message "Cannot
connect to X-server".
Attached is the log for running jupyter-hub. Only the starting log is
shown, which shows how I may have started it.
-thanks
-koshy
On Thursday, August 4, 2016 at 4:30:56 PM UTC-7, [email protected] wrote:
>
> Hi Matthias,
>
> thanks for the reply.
>
> >> 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)
>
>
> I would rather have (a) or (b). It doesnot make a difference for me,
> since my kernel and server are in the same machine.
> I have tried QT based solution and is a very clunky solution.
>
> I tried using the jupyter-js-ui solution. So far I have been able to show
> the file browser in a webpage. But I need to make it appear as a pop-up
> dialog.
> Is there any pointers for that.
>
>
> <https://lh3.googleusercontent.com/-fCo-Lv81Oy8/V6PP9TD3emI/AAAAAAAAAAM/3lUcktdZZDoQLL6VoyO_K7DtbJq03cM_wCLcB/s1600/foo2.png>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -thanks
> -koshy
>
>
> On Tuesday, August 2, 2016 at 1:46:36 PM UTC-7, Matthias Bussonnier wrote:
>>
>> 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/692509e4-e6c3-44df-a7ba-47c4b7f53b1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[I 2016-08-05 10:50:08.749 JupyterHub app:622]([m Loading cookie_secret from
/home/koshy/projects/Deepposekm/jupyterhub_cookie_secret
[34m[D 2016-08-05 10:50:08.750 JupyterHub app:694](B[m Connecting to db:
sqlite:///jupyterhub.sqlite
[33m[W 2016-08-05 10:50:08.784 JupyterHub app:304](B[m
Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require
restarting the proxy.
Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to
avoid this message.
[33m[W 2016-08-05 10:50:08.789 JupyterHub app:757](B[m No admin users, admin
interface will be unavailable.
[33m[W 2016-08-05 10:50:08.789 JupyterHub app:758](B[m Add any administrative
users to `c.Authenticator.admin_users` in config.
[32m[I 2016-08-05 10:50:08.789 JupyterHub app:785](B[m Not using whitelist. Any
authenticated user will be allowed.
[34m[D 2016-08-05 10:50:08.800 JupyterHub app:888](B[m Loaded users:
koshy
[32m[I 2016-08-05 10:50:08.807 JupyterHub app:1231](B[m Hub API listening on
http://127.0.0.1:8081/hub/
[33m[W 2016-08-05 10:50:08.810 JupyterHub app:959](B[m Running JupyterHub
without SSL. There better be SSL termination happening somewhere else...
[32m[I 2016-08-05 10:50:08.811 JupyterHub app:968](B[m Starting proxy @
http://0.0.0.0:8000/
[34m[D 2016-08-05 10:50:08.811 JupyterHub app:969](B[m Proxy cmd:
['configurable-http-proxy', '--ip', '0.0.0.0', '--port', '8000', '--api-ip',
'127.0.0.1', '--api-port', '8001', '--default-target', 'http://127.0.0.1:8081',
'--error-target', 'http://127.0.0.1:8081/hub/error']
[34m[D 2016-08-05 10:50:09.016 JupyterHub app:997](B[m Proxy started and
appears to be up
[32m[I 2016-08-05 10:50:09.016 JupyterHub app:1254](B[m JupyterHub is now
running at http://127.0.0.1:8000/
[32m[I 2016-08-05 10:50:14.497 JupyterHub app:1115](B[m Cleaning up single-user
servers...
[32m[I 2016-08-05 10:50:14.593 JupyterHub app:1126](B[m Cleaning up
proxy[20285]...
[32m[I 2016-08-05 10:50:14.594 JupyterHub app:1152](B[m ...done