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

Method __init__

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

Source from the content-addressed store, hash-verified

509 aliases = ['ipy']
510
511 def __init__(self, **options):
512 self.python3 = get_bool_opt(options, 'python3', False)
513 if self.python3:
514 self.aliases = ['ipy3']
515 else:
516 self.aliases = ['ipy2', 'ipy']
517
518 Lexer.__init__(self, **options)
519
520 self.IPythonLexer = IPythonLexer(**options)
521 self.IPythonConsoleLexer = IPythonConsoleLexer(**options)
522
523 def get_tokens_unprocessed(self, text):
524 # Search for the input prompt anywhere...this allows code blocks to

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

IPythonConsoleLexerClass · 0.85

Tested by

no test coverage detected