{ } Raw JSON

bundles / IPython 9.13.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