C2_W2 Assignment; Grader keeps failing me

Hi, I get a 0 even though everything seems to work, and I always get the “all tests passed”; for both my solution and the copy-paste from the hints. I get the following message:

Cell #12. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (‘/tmp/student_solution_cells/cell_12.py’, 34, 47, " ax.imshow(X_random_reshaped, cmap=‘gray’)öä\n"))

Can anyone help? Also, how do I know which cell is cell #12?

Question:

Are you running the assignment in Coursera Labs?

Did you ever download the notebook to your computer, edit it there, and then upload it back to Coursera Labs for grading?

Hi @Elzear_Young

please make sure you from the indentation of this line of code and also make sure you run the import libraries cell(First cell)

Thanks!
Abdelrahman

Thanks for the help, it works now; I must have accidentally modified an import cell.

I am happy to hear that you solved the problem

Cheers!
Abdelrahman