bundles / jupyter_client latest / jupyter_client / client / KernelClient / history
function
jupyter_client.client:KernelClient.history
source: /jupyter_client/client.py:728
Signature
def history(self, raw: bool = True, output: bool = False, hist_access_type: str = range, **kwargs: t.Any) → strSummary
Get entries from the kernel's history list.
Parameters
raw: boolIf True, return the raw input.
output: boolIf True, then return the output as well.
hist_access_type: str'range' (fill in session, start and stop params), 'tail' (fill in n)
or 'search' (fill in pattern param).
session: intFor a range request, the session from which to get lines. Session numbers are positive integers; negative ones count back from the current session.
start: intThe first line number of a history range.
stop: intThe final (excluded) line number of a history range.
n: intThe number of lines of history to get for a tail request.
pattern: strThe glob-syntax pattern for a search request.
Returns
: The ID of the message sent.
Aliases
jupyter_client.KernelClient.history