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

bundles / IPython 9.14.0 / IPython / core / magics / history / HistoryMagics / rerun

function

IPython.core.magics.history:HistoryMagics.rerun

source: /dev/ipython/IPython/core/magics/history.py:310

Signature

def rerun(self, parameter_s = '')

Summary

Re-run previous input

Extended Summary

By default, you can specify ranges of input history to be repeated (as with %history). With no arguments, it will repeat the last line.

Options:

-l <n>Repeat the last n lines of input, not including the current command.

-g fooRepeat the most recent line which contains foo

Aliases

  • IPython.core.magics.HistoryMagics.rerun