bundles / IPython 9.5.0 / IPython / core / history / HistoryAccessor / get_session_info
function
IPython.core.history:HistoryAccessor.get_session_info
source: /IPython/core/history.py :393
Signature
def get_session_info ( self , session : int ) → tuple[int, datetime.datetime, Optional[datetime.datetime], Optional[int], str] Summary
Get info about a session.
Parameters
session: intSession number to retrieve.
Returns
session_id: intSession ID number
start: datetimeTimestamp for the start of the session.
end: datetimeTimestamp for the end of the session, or None if IPython crashed.
num_cmds: intNumber of commands run, or None if IPython crashed.
remark: strA manually set description.
Aliases
-
IPython.core.history.HistoryAccessor.get_session_info