bundles / IPython 9.17.0 / IPython / core / history / HistoryAccessor / search
function
IPython.core.history:HistoryAccessor.search
Signature
def search(self, pattern: str = *, raw: bool = True, search_raw: bool = True, output: bool = False, n: int | None = None, unique: bool = False) → Iterable[tuple[int, int, InOrInOut]]Summary
Search the database using unix glob-style matching (wildcards * and ?).
Parameters
pattern: strThe wildcarded pattern to match when searching
search_raw: boolIf True, search the raw input, otherwise, the parsed input
raw, output: boolSee get_range
n: None or intIf an integer is given, it defines the limit of returned entries.
unique: boolWhen it is true, return only unique entries.
Returns
Tuples as: meth:`get_range`
Aliases
IPython.core.history.HistoryAccessor.search