bundles / IPython 9.13.0 / IPython / core / interactiveshell / InteractiveShell / check_complete
function
IPython.core.interactiveshell:InteractiveShell.check_complete
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: stringPython input code, which can be multiline.
Returns
status: strOne of 'complete', 'incomplete', or 'invalid' if source is not a prefix of valid code.
indent: strWhen status is 'incomplete', this is some whitespace to insert on the next line of the prompt.
Aliases
-
IPython.InteractiveShell.check_complete