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

Method showindentationerror

IPython/core/interactiveshell.py:2097–2103  ·  view source on GitHub ↗

Called by _run_cell when there's an IndentationError in code entered at the prompt. This is overridden in TerminalInteractiveShell to show a message about the %paste magic.

(self)

Source from the content-addressed store, hash-verified

2095 # This is overridden in TerminalInteractiveShell to show a message about
2096 # the %paste magic.
2097 def showindentationerror(self):
2098 """Called by _run_cell when there's an IndentationError in code entered
2099 at the prompt.
2100
2101 This is overridden in TerminalInteractiveShell to show a message about
2102 the %paste magic."""
2103 self.showsyntaxerror()
2104
2105 #-------------------------------------------------------------------------
2106 # Things related to readline

Callers 1

run_cell_asyncMethod · 0.95

Calls 1

showsyntaxerrorMethod · 0.95

Tested by

no test coverage detected