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

bundles / IPython 9.11.0 / IPython / core / interactiveshell / InteractiveShell / safe_execfile_ipy

function

IPython.core.interactiveshell:InteractiveShell.safe_execfile_ipy

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

Signature

def   safe_execfile_ipy ( self fname shell_futures = False raise_exceptions = False )

Summary

Like safe_execfile, but for .ipy or .ipynb files with IPython syntax.

Parameters

fname : str

The name of the file to execute. The filename must have a .ipy or .ipynb extension.

shell_futures : bool (False)

If True, the code will share future statements with the interactive shell. It will both be affected by previous __future__ imports, and any __future__ imports in the code will affect the shell. If False, __future__ imports are not shared in either direction.

raise_exceptions : bool (False)

If True raise exceptions everywhere. Meant for testing.

Aliases

  • IPython.InteractiveShell.safe_execfile_ipy