jrjohansson / version_information

IPython magic command for showing version information for dependency modules in a notebook.
54 stars 17 forks source link

add pseudo-software hostname/-address & user #7

Open martinATtug opened 9 years ago

martinATtug commented 9 years ago

This is a feature suggestion.

I like this extension and hope one day it'll be part of IPython proper. My dominant use case is "easing reproducability", i.e. make it easier given the notebook output to (modify and) re-execute the notebook without running into software compatibility issues.

In a corporate network context however, the most easy way might be to identify the particular installation (host or address, port, userid) and try it there again.

Currently I am using a cell like

from IPython.display import HTML
import time, getpass, socket
HTML(r"This document has been formatted %s by %s on host <tt>%s</tt>"
     % (time.asctime(), getpass.getuser(), socket.gethostname()))

but if deemed useful for the general public similar functionality could be integrated in version_information.