]> git.wh0rd.org - home.git/blob - .ipython/profile_default/ipython_config.py
ipython: show current version on startup
[home.git] / .ipython / profile_default / ipython_config.py
1 """My customizations to the runtime."""
2
3 from __future__ import print_function
4
5 import sys
6
7 from IPython.terminal.prompts import Prompts, Token
8
9
10 class MyPrompt(Prompts):
11 def in_prompt_tokens(self, cli=None):
12 return [(Token.Prompt, '>>> ')]
13
14 def out_prompt_tokens(self, cli=None):
15 return []
16
17
18 c.InteractiveShell.prompts_class = MyPrompt
19
20
21 print('Python', sys.version.splitlines()[0])