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

bundles / IPython 9.5.0 / IPython / core / inputtransformer2 / TransformerManager / check_complete

function

IPython.core.inputtransformer2:TransformerManager.check_complete

source: /IPython/core/inputtransformer2.py :646

Signature

def   check_complete ( self cell : str )

Summary

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

Parameters

cell : 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_spaces : int or None

The number of spaces by which to indent the next line of code. If status is not 'incomplete', this is None.

Aliases

  • IPython.core.inputtransformer2.TransformerManager.check_complete