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

bundles / IPython 9.12.0 / IPython / core / magics / execution / ExecutionMagics / _run_with_profiler

function

IPython.core.magics.execution:ExecutionMagics._run_with_profiler

source: /IPython/core/magics/execution.py:327

Signature

def _run_with_profiler(self, code, opts, namespace)

Summary

Run code with profiler. Used by %prun and %run -p.

Parameters

code : str

Code to be executed.

opts : Struct

Options parsed by self.parse_options.

namespace : dict

A dictionary for Python namespace (e.g., self.shell.user_ns).

Aliases

  • IPython.core.magics.ExecutionMagics._run_with_profiler