3 try: import pygments
as PYG
5 try: import prompt_toolkit
as PTK
11 c
.InteractiveShell
.autocall
= 0
12 c
.InteractiveShell
.autoindent
= True
13 c
.InteractiveShell
.automagic
= False
15 c
.InteractiveShell
.color_info
= True
16 c
.InteractiveShell
.colors
= 'Linux'
18 c
.TerminalIPythonApp
.display_banner
= False
19 c
.TerminalInteractiveShell
.confirm_exit
= False
20 c
.TerminalInteractiveShell
.display_completions
= 'readlinelike'
23 if PYG
and getattr(PYG
, 'token', None):
25 c
.TerminalInteractiveShell
.highlighting_style
= 'emacs'
26 c
.TerminalInteractiveShell
.highlighting_style_overrides
= {
27 T
.Keyword
: 'bold #fff',
28 T
.Comment
: 'italic #54ff9f',
29 T
.Literal
.Number
: '#ffff00',
30 T
.Literal
.String
: '#87ceff',
31 T
.Literal
.String
.Escape
: '#87ceff',
32 T
.Literal
.String
.Interpol
: '#87ceff',
34 T
.Name
.Builtin
: '#fff',
36 T
.Name
.Constant
: 'italic #fff',
37 T
.Name
.Decorator
: '#fff',
38 T
.Name
.Exception: '#fff',
39 T
.Name
.Function
: '#fff',
40 T
.Name
.Function
.Magic
: '#fff',
42 T
.Name
.Namespace
: '#fff',
43 T
.Name
.Variable
: '#fff',
44 T
.Name
.Variable
.Class
: '#fff',
45 T
.Name
.Variable
.Global
: '#fff',
46 T
.Name
.Variable
.Instance
: '#fff',
47 T
.Name
.Variable
.Magic
: '#fff',
48 T
.Operator
: '#eec591',
49 T
.Operator
.Word
: 'bold #fff',
50 T
.Punctuation
: '#eec591',
55 PTK
.token
.Token
.MatchingBracket
: '',
56 PTK
.token
.Token
.MatchingBracket
.Cursor
: '',
57 PTK
.token
.Token
.MatchingBracket
.Other
: 'bg:#006400'
59 c
.TerminalInteractiveShell
.highlighting_style_overrides
.update(d
)