Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It is likely because the .ipynb file does not support the same package dependencies as the .py file. Confirm that the necessary libraries, such as matplotlib or pygame, are installed and imported correctly in the .ipynb file. Additionally, it is possible that the code itself needs to be modified to work correctly in a Jupyter notebook environment.