How can I reset the dma in pynq jupyter

When I use pynqz2, I have some problems. How can I reset the DMA conveniently in Jupyter notebooks when the dma channel is not idle.