There was a problem compiling the code from your notebook. Details: No module named ‘IPython’

I’ve completed C2W1 programming assignment. When I run it on the google colab notebook, everything runs fine and gives the expected output. When I download the .ipynb file, upload and submit it, the grader output always shows -
“Grader Output - There was a problem compiling the code from your notebook. Details: No module named ‘IPython’.” and assignment is not evaluated. I did import IPython into the notebook and submitted it again. But I get the same above message. what did I do wrong ?

Any help in getting this problem resolved is greatly appreciated.

Thank you

Hi @Peesa_Santhi_Prasann, DM me with a copy of your notebook so I can take a look. You should not add imports to your notebook since all of the necessary imports are already there and the grader will not install new libraries, so if an import is added it is very likely not included in the env where grading happens.

Same problem here.

would you please take a look at my NB?

I have the same issue. I haven’t added any imports other than inline one for the optimizer >> model.compile(optimizer=tf.keras.optimizers.RMSprop(learning_rate=0.001), … )

what should I do?

@Basha_Alfoghom
Please click my name and message your notebook as an attachment.

@Basha_Alfoghom

Please remove this import and try again:
from IPython.core.display import Image

Where is this line located? I couldn’t find it to remove it

See it now?

2 Likes

Yes I found it when I used Visual Studio code to read the file. Thank you so much.

1 Like

@oscaraen

Here’s an import not found in the grader environment:
from IPython.lib.display import isdir

The feedback is clear. Please remove the import.