bundles / IPython 9.14.0.dev / IPython / core / interactiveshell / InteractiveShell / safe_run_module
function
IPython.core.interactiveshell:InteractiveShell.safe_run_module
Signature
def safe_run_module ( self , mod_name , where ) Summary
A safe version of runpy.run_module().
Extended Summary
This version will never throw an exception, but instead print helpful error messages to the screen.
SystemExit exceptions with status code 0 or None are ignored.
Parameters
mod_name: stringThe name of the module to be executed.
where: dictThe globals namespace.
Aliases
-
IPython.InteractiveShell.safe_run_module