bundles / IPython 9.17.0 / IPython / core / magic / compress_dhist
function
IPython.core.magic:compress_dhist
Signature
def compress_dhist(dh: list[str]) → list[str]Summary
Compress a directory history into a new one with at most 20 entries.
Extended Summary
Return a new list made from the first and last 10 elements of dhist after removal of duplicates.
Aliases
IPython.core.magic.compress_dhist