On 6 February 2017 at 23:42, DG <[email protected]> wrote:

> Hello, can anybody please show a way to get the port number of the server
> connection in an IPython notebook command? I could not easily find this in
> the documentation.


By design, kernel code doesn't know about the notebook you're running it
from. You can get a list of all running servers
(notebook.notebookapp.list_running_servers()), but that doesn't indicate
which one is handling the current code.

As Matthias suggested, please tell us a bit more about why you want to do
this: we may be able to point you to a better option.

Thomas

-- 
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/CAOvn4qiRQASmuAP4RomYSBe%2Bmb%2BcDqZtF%2BqeMqVhAWRR2o9pQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to