C2W1 Homework submission problem

C2W1 Encounter “There was a problem compiling the code from your notebook. Details:
name ‘calculate_and_display_anomalies’ is not defined” issue. Does anyone encounter this as well?

1 Like

Hello @Yu-Hsuan Did you Pass the statistics and schema parameters into the validation function?

Also check whether in the display_anomalies function you have passed it your calculated anomalies. Thank you

1 Like

Yes, all passed. And the function is defined in the cell

1 Like

Hello, I did pass that in the function. It showed as expected in the next testing cell. If the function can be called in the next cell, supposedly, it should not have this error. Is that correct?

1 Like

Yes

& when are you getting this error: There was a problem compiling the code from your notebook. Details: name ‘calculate_and_display_anomalies’ is not defined” ?

If it’s when grading try to add this code at the end of the cell # grade up to here

I did not add #grade up to here since I already finished entire thing. Not sure how this happened.

Try checking your metadata: Here

If this still don’t solve your issue dm me your code

1 Like