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

bundles / IPython latest / IPython / core / history / HistoryAccessor / get_last_session_id

function

IPython.core.history:HistoryAccessor.get_last_session_id

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

Signature

def get_last_session_id(self) → int | None

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