Thank you for doing this.
There is an import: import IPython
in your notebook which is not provided as part of the starter code.
You are allowed to add only python standard library imports within the code. The provided imports are usually sufficient for solving the assignment. So, remove and try submitting again. Here are steps to refresh the workspace.