{ } Raw JSON

bundles / IPython 9.17.0 / IPython / utils / data / chop

function

IPython.utils.data:chop

source: /dev/ipython/IPython/utils/data.py:48

Signature

def chop(seq: Sequence[T], size: int) → list[Sequence[T]]

Summary

Chop a sequence into chunks of the given size.

Aliases

  • IPython.core.page.chop