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

bundles / IPython 9.3.0 / IPython / core / history / HistoryManager / store_inputs

function

IPython.core.history:HistoryManager.store_inputs

source: /IPython/core/history.py:940

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