def ipdb_breakpoint(x):
"""A simple hook function for :func:`put_hook` that runs ipdb.
Parameters
----------
x : :class:`~numpy.ndarray`
The value of the hooked variable.
"""
import ipdb
ipdb.set_trace()
文章目录