]> git.wh0rd.org Git - home.git/commitdiff
ipython: show current version on startup
authorMike Frysinger <vapier@gentoo.org>
Sun, 16 Feb 2020 06:50:47 +0000 (01:50 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 16 Feb 2020 06:50:47 +0000 (01:50 -0500)
.ipython/profile_default/ipython_config.py

index 0a96067bff708676d57bf73b455d76c41034df2a..7160b770927b4b55a13dd418927221b68ea35be7 100644 (file)
@@ -1,3 +1,9 @@
+"""My customizations to the runtime."""
+
+from __future__ import print_function
+
+import sys
+
 from IPython.terminal.prompts import Prompts, Token
 
 
@@ -10,3 +16,6 @@ class MyPrompt(Prompts):
 
 
 c.InteractiveShell.prompts_class = MyPrompt
+
+
+print('Python', sys.version.splitlines()[0])