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

bundles / IPython 9.12.0 / IPython / core / history / HistoryAccessor / get_last_session_id

function

IPython.core.history:HistoryAccessor.get_last_session_id

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

Signature

def get_last_session_id(self) → Optional[int]

Summary

Get the last session ID currently in the database.

Extended Summary

Within IPython, this should be the same as the value stored in HistoryManager.session_number.

Aliases

  • IPython.core.history.HistoryAccessor.get_last_session_id