Is it there a way to find where the deadlock is while using jupyter?

I am using multithreads in jupyter, but often some deadlocks were triggered. When this happened, the jupyter kernel is just keep running and no error message printed, so I have to restart the kernel. After that, I have no message about the deadlocks.
So is it there a way I can find the deadlock infomation when using jupyter?