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

bundles / IPython 9.15.0.dev / IPython / core / history / HistoryManager / store_inputs

function

IPython.core.history:HistoryManager.store_inputs

source: /dev/ipython/IPython/core/history.py:978

Signature

def store_inputs(self, line_num: int, source: str, source_raw: Optional[str] = None) → None

Summary

Store source and raw input in history and create input cache variables _i*.

Parameters

line_num : int

The prompt number of this input.

source : str

Python input.

source_raw : str, optional

If given, this is the raw input without any IPython transformations applied to it. If not given, source is used.

Aliases

  • IPython.core.history.HistoryManager.store_inputs