Re: [jupyter] Re: Online converter notebook->html

2018-01-18 Thread M Pacer
>
> Isn’t that what happens when viewing it in the browser?


If I understand you correctly, that’s not quite right.
If you check out http://nbviewer.jupyter.org/ that is closer to the output
provided by nbconvert’s html export.

When you are interacting with a live notebook it is running a web
application through the browser; this cannot be achieved by a static html
page with no access to an kernel (which is what jupyter nbconvert
your.ipynb --to html provides).


On Thu, Jan 18, 2018 at 3:56 PM, Lawrence D’Oliveiro  wrote:

> On Wednesday, January 17, 2018 at 11:38:38 AM UTC+13, Angel Marchev, Jr.
> wrote:
>
>>
>>> ...my saved notebook ... is converted to standard html form ...
>>
>
> Isn’t that what happens when viewing it in the browser?
>
> --
> 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 jupyter+unsubscr...@googlegroups.com.
> To post to this group, send email to jupyter@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/63f3c15a-5d3f-4d60-a2dd-fe388d26d8ab%40googlegroups.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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAM3SX45um63T5xzYBpZ%3D0A-FUqgfO%3DwgG9CSba_JO%3D4ddnGrzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] bug with logout?

2018-01-18 Thread Tim Harsch
I'm trying to understand the logout chain in jupyterhub/notebooks.  
 version 0.8.1 and 5.1.0 respectively.   I'm using dockerspawner and 
jwtauthenticator.

I would like to effect a logout from outside the UI, so I tried using the 
API token and that doesn't seem to work as I get a 403.   So I started 
experimenting and performed this simple test:

login to jupyterhub with chrome developer tools.   in network tab 
right-click copy /user/{name}/api/contents call as curl command.execute 
the command at the terminal (which includes Cookie header).  Notice success 
with JSON.
go to UI and choose logout in UI.   
repeat curl command and notice same result.  I'm allowed in to a logged out 
session with the Cookie token.  Does this seem like a bug? or I wonder if 
it has to do with my fairly specific environment?

Thanks,
Tim

-- 
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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/fbb689b6-ca3d-4c7c-abfe-e7ee5fee7cee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] More on DNS rebinding

2018-01-18 Thread Lawrence D’Oliveiro
On Wednesday, January 17, 2018 at 4:44:38 AM UTC+13, Matthias Bussonnier 
wrote:

>
> ... and a flag to disable it with a big warning ...
>

I think a simple name like “enable DNS insecure mode” would do the trick. I 
don’t think big warnings are very useful: people just ignore them. But use 
a trigger word like “insecure”, and that should make them think twice. By 
all means link to a more detailed explanation elsewhere. But for those who 
can’t be bothered to read further, it should at least make them nervous.

-- 
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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/28c1afcc-5350-4f98-86bf-531462f93d69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jupyter] Re: Online converter notebook->html

2018-01-18 Thread Lawrence D’Oliveiro
On Wednesday, January 17, 2018 at 11:38:38 AM UTC+13, Angel Marchev, Jr. 
wrote:

>
>> ...my saved notebook ... is converted to standard html form ...
>

Isn’t that what happens when viewing it in the browser? 

-- 
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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/63f3c15a-5d3f-4d60-a2dd-fe388d26d8ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [jupyter] Re: how to test for running server?

2018-01-18 Thread Tim Harsch
Thank you!  I will try to find some time to submit a PR for additional GET 
method for servers.

On Tuesday, January 16, 2018 at 10:40:50 AM UTC-8, Min RK wrote:
>
> A GET on the user shows their server status(es). If the user is not 
> running, the server value will be null. If it is running, the server 
> value will be the URL of the running server.
>
> The below results are with the named-servers extension enabled. If it is 
> not enabled, then the servers key may be omitted. Only the 'default' 
> server will show up in user.server, so user.servers will have a dict of all 
> running servers for a given user, keyed by name.
>
> Running:
>
> GET /users/:name
>
> {
>   "kind": "user",
>   "name": "name",
>   "admin": true,
>   "groups": [],
>   "server": "/user/name/",
>   "pending": null,
>   "last_activity": "2018-01-16T18:31:36.151369",
>   "servers": {
> "": {
>   "name": "",
>   "url": "/user/name/"
> }
>   }
> }
>
> Not running:
>
> {
>   "kind": "user",
>   "name": "name",
>   "admin": true,
>   "groups": [],
>   "server": null,
>   "pending": null,
>   "last_activity": "2018-01-16T18:35:54.491154",
>   "servers": {}
> }
>
> ​
>
> On Wed, Dec 20, 2017 at 4:14 PM, Tim Harsch  > wrote:
>
>> Right.  Sorry, I should have been more clear.  In the case of DELETE, if 
>> you attempt to DELETE when no server is running you will get a HTTP 400 and 
>> no action taken.  But, if you DELETE and a server is running then the 
>> server stops and you will get HTTP 204(I think).   Similar logic for POST.  
>> I really just want to check the status, without causing stop or start of 
>> the server.
>>
>> Since there seems to be no GET method, could I possibly something using 
>> the services?  or maybe I could implement the GET ?  Just looking for 
>> advice on best way forward.
>>
>
> I think it would be fine to add a GET for individual servers.
>  
>
>>
>> Thanks,
>> Tim
>>
>> On Wednesday, December 20, 2017 at 3:26:32 PM UTC-8, Lawrence D’Oliveiro 
>> wrote:
>>>
>>> On Wednesday, December 20, 2017 at 11:44:35 AM UTC+13, Tim Harsch wrote:

 I see with JupyterHub API you can POST or DELETE to  
 /users/{name}/server but there doesn't seem to be a GET.  If that's true 
 is 
 there another way I can test for a running server other than POST or 
 DELETE 
 which have their side effects?..

>>>
>>> Whether POST and GET have “side” effects or not is entirely up to how 
>>> the server interprets the request. 
>>>
>> -- 
>> 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 jupyter+u...@googlegroups.com .
>> To post to this group, send email to jup...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jupyter/4de7b283-659c-4d63-ad8e-ca5c432f5b12%40googlegroups.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 jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/679e87e1-9548-4609-88aa-8d1be1ab9542%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.