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

bundles / IPython 9.10.0 / IPython / terminal / embed / EmbeddedMagics / exit_raise

function

IPython.terminal.embed:EmbeddedMagics.exit_raise

source: /IPython/terminal/embed.py :97

Signature

def   exit_raise ( self parameter_s = '' )

Summary

%exit_raise Make the current embedded kernel exit and raise and exception.

Extended Summary

This function sets an internal flag so that an embedded IPython will raise a IPython.terminal.embed.KillEmbedded Exception on exit, and then exit the current I. This is useful to permanently exit a loop that create IPython embed instance.

Aliases

  • IPython.terminal.embed.EmbeddedMagics.exit_raise