Show More
@@ -2664,7 +2664,7 b' class InteractiveShell(SingletonConfigurable):' | |||
|
2664 | 2664 | # tb offset is 2 because we wrap execfile |
|
2665 | 2665 | self.showtraceback(tb_offset=2) |
|
2666 | 2666 | |
|
2667 |
def safe_execfile_ipy(self, fname, |
|
|
2667 | def safe_execfile_ipy(self, fname, shell_futures=False, raise_exceptions=False): | |
|
2668 | 2668 | """Like safe_execfile, but for .ipy or .ipynb files with IPython syntax. |
|
2669 | 2669 | |
|
2670 | 2670 | Parameters |
@@ -2672,13 +2672,13 b' class InteractiveShell(SingletonConfigurable):' | |||
|
2672 | 2672 | fname : str |
|
2673 | 2673 | The name of the file to execute. The filename must have a |
|
2674 | 2674 | .ipy or .ipynb extension. |
|
2675 | raise_exceptions : bool (False) | |
|
2676 | If True raise exceptions everywhere. Meant for testing. | |
|
2677 | 2675 | shell_futures : bool (False) |
|
2678 | 2676 | If True, the code will share future statements with the interactive |
|
2679 | 2677 | shell. It will both be affected by previous __future__ imports, and |
|
2680 | 2678 | any __future__ imports in the code will affect the shell. If False, |
|
2681 | 2679 | __future__ imports are not shared in either direction. |
|
2680 | raise_exceptions : bool (False) | |
|
2681 | If True raise exceptions everywhere. Meant for testing. | |
|
2682 | 2682 | """ |
|
2683 | 2683 | fname = os.path.abspath(os.path.expanduser(fname)) |
|
2684 | 2684 |
General Comments 0
You need to be logged in to leave comments.
Login now