Skip to content

Instantly share code, notes, and snippets.

@rgbkrk
Created December 15, 2015 21:24
Show Gist options
  • Save rgbkrk/1657ef95baa2fb846ebf to your computer and use it in GitHub Desktop.
Save rgbkrk/1657ef95baa2fb846ebf to your computer and use it in GitHub Desktop.
$ docker run --rm --net=host -it ipython/ipython ipython
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import jupyter_client
In [2]: jupyter_client.localinterfaces.public_ips()
Out[2]: ['172.17.0.1', '172.99.78.157', '10.176.229.122']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment