{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / history / HistoryManager / close

function

IPython.core.history:HistoryManager.close

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

Signature

def close(self) → None

Summary

Stop the saving thread and close the database connection.

Extended Summary

This is the deterministic counterpart to relying on garbage collection: it shuts the saving thread down (which closes its private connection) and then closes the manager's own connection. Safe to call more than once.

Aliases

  • IPython.core.history.HistoryManager.close