Why jupyter notebook can not directly run DDP in a .ipynb file?

Does someone could explain it in detail?

Hi! Welcome to the forum.

Unfortunately your question doesn’t provide enough detail for us to help you. You may find this post useful in knowing what information to include: