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

bundles / IPython 9.11.0 / IPython / core / history / HistoryAccessor / get_session_info

function

IPython.core.history:HistoryAccessor.get_session_info

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

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