This is a development version (latest) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / interactiveshell / InteractiveShell / safe_run_module

function

IPython.core.interactiveshell:InteractiveShell.safe_run_module

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

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