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