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

bundles / IPython 9.10.0 / IPython / core / history / HistoryAccessor / get_session_info

function

IPython.core.history:HistoryAccessor.get_session_info

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

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 : int

Session number to retrieve.

Returns

session_id : int

Session ID number

start : datetime

Timestamp for the start of the session.

end : datetime

Timestamp for the end of the session, or None if IPython crashed.

num_cmds : int

Number of commands run, or None if IPython crashed.

remark : str

A manually set description.

Aliases

  • IPython.core.history.HistoryAccessor.get_session_info