{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / history / HistoryAccessor / close

function

IPython.core.history:HistoryAccessor.close

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

Signature

def close(self) → None

Summary

Close the SQLite database connection.

Extended Summary

Prefer calling this to closing self.db directly: it gives subclasses (notably HistoryManager) a single place to hook in the rest of their teardown. Safe to call more than once.

Aliases

  • IPython.core.history.HistoryAccessor.close