An IPython magic extension for printing date and time stamps, version numbers, and hardware information
--gpu
flag to print out GPU information (currently limited to NVIDIA devices) (#90, via contribution by 907Resident)--github_username
- for prints author github username, --email
- for prints author email, --website
- for prints author or project website. (#82, via contribution by joschkazj)--conda
option to print the name of the current conda environment. (#79, via contribution by Alexander Krasnikov)import numpy
import watermark.watermark as watermark
watermark(iversions=True, globals_=globals())
watermark()
function now also works outside IPython and Jupyter. Now, the magic %watermark
calls watermark()
. Calling %watermark
via IPython and Juypter still works as usual. However, in addition the watermark()
function can be used within regular Python for unit testing purposes etc. (#46, via contribution by Tymoteusz Wołodźko)VERSION
attributes, in addition to __version__
attributes.pkg_resources
as the default method for getting version numbers.--iversion
is used, print an empty string instead of raising an error.-iv
/--iversion
flag is used.-iv
/--iversion
flag now also shows package versions that were imported as from X import Y
and import X.Y as Y
. For example,import scipy as sp
from sklearn import metrics
import numpy.linalg as linalg
%watermark --iversions
will return
scipy 1.1.0
sklearn 0.20.1
numpy 1.15.4
(Via contribution by James Myattt)