MCPcopy Index your code
hub / github.com/ipython/ipython / showindentationerror

Method showindentationerror

IPython/core/interactiveshell.py:2288–2294  ·  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

2286 # This is overridden in TerminalInteractiveShell to show a message about
2287 # the %paste magic.
2288 def showindentationerror(self):
2289 """Called by _run_cell when there's an IndentationError in code entered
2290 at the prompt.
2291
2292 This is overridden in TerminalInteractiveShell to show a message about
2293 the %paste magic."""
2294 self.showsyntaxerror()
2295
2296 @skip_doctest
2297 def set_next_input(self, s, replace=False):

Callers 1

run_cell_asyncMethod · 0.95

Calls 1

showsyntaxerrorMethod · 0.95

Tested by

no test coverage detected