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

bundles / IPython latest / IPython / core / history / hold

function

IPython.core.history:hold

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

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