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

bundles / IPython 9.11.0 / IPython / core / history / hold

function

IPython.core.history:hold

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

Signature

def   hold ( ref : ReferenceType[HistoryManager] )  →  Iterator[ReferenceType[HistoryManager]]

Summary

Context manger that hold a reference to a weak ref to make sure it is not GC'd during it's context.

Aliases

  • IPython.core.history.hold