You are viewing an older version (9.10.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.10.0 / IPython / core / interactiveshell / InteractiveShell / check_complete

function

IPython.core.interactiveshell:InteractiveShell.check_complete

source: /IPython/core/interactiveshell.py :3731

Signature

def   check_complete ( self code : str )  →  Tuple[str, str]

Summary

Return whether a block of code is ready to execute, or should be continued

Parameters

code : string

Python input code, which can be multiline.

Returns

status : str

One of 'complete', 'incomplete', or 'invalid' if source is not a prefix of valid code.

indent : str

When status is 'incomplete', this is some whitespace to insert on the next line of the prompt.

Aliases

  • IPython.InteractiveShell.check_complete

Referenced by