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_run_module

function

IPython.core.interactiveshell:InteractiveShell.safe_run_module

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

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 : string

The name of the module to be executed.

where : dict

The globals namespace.

Aliases

  • IPython.InteractiveShell.safe_run_module