MCPcopy Create free account
hub / github.com/ipython/ipython / __init__

Method __init__

IPython/lib/lexers.py:196–209  ·  view source on GitHub ↗
(self, **options)

Source from the content-addressed store, hash-verified

194 aliases = ['ipythontb']
195
196 def __init__(self, **options):
197 self.python3 = get_bool_opt(options, 'python3', False)
198 if self.python3:
199 self.aliases = ['ipython3tb']
200 else:
201 self.aliases = ['ipython2tb', 'ipythontb']
202
203 if self.python3:
204 IPyLexer = IPython3Lexer
205 else:
206 IPyLexer = IPythonLexer
207
208 DelegatingLexer.__init__(self, IPyLexer,
209 IPythonPartialTracebackLexer, **options)
210
211class IPythonConsoleLexer(Lexer):
212 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected