22Sebastian Raschka 2014
33
44watermark.py
5- version 1.0.0
5+ version 1.0.1
66
77
88IPython magic function to print date/time stamps and various system information.
@@ -50,7 +50,7 @@ class WaterMark(Magics):
5050 """
5151 IPython magic function to print date/time stamps
5252 and various system information.
53-
53+
5454 """
5555 @magic_arguments ()
5656 @argument ('-d' , '--date' , action = 'store_true' , help = 'prints current date' )
@@ -68,6 +68,8 @@ def watermark(self, line):
6868 IPython magic function to print date/time stamps
6969 and various system information.
7070
71+ watermark version 1.0.1
72+
7173 """
7274 self .out = ''
7375 args = parse_argstring (self .watermark , line )
@@ -111,7 +113,8 @@ def _get_packages(self, pkgs):
111113 def _get_pyversions (self ):
112114 if self .out :
113115 self .out += '\n \n '
114- self .out += 'Python %s\n IPython %s' % (
116+ self .out += '%s %s\n IPython %s' % (
117+ platform .python_implementation (),
115118 platform .python_version (),
116119 IPython .__version__
117120 )
@@ -134,4 +137,4 @@ def _get_sysinfo(self):
134137
135138
136139def load_ipython_extension (ipython ):
137- ipython .register_magics (WaterMark )
140+ ipython .register_magics (WaterMark )
0 commit comments