# Error in coursera notebook lab

**URL:** <https://community.deeplearning.ai/t/error-in-coursera-notebook-lab/810557>\
**Category:** Sequences, Time Series and Prediction\
**Tags:** week-module-1\
**Created:** [May 5, 2025, 2:29pm UTC](https://community.deeplearning.ai/t/error-in-coursera-notebook-lab/810557 "2025-05-05T14:29:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VictorMaeda](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@VictorMaeda](https://community.deeplearning.ai/u/VictorMaeda)\
**Post date:** [May 5, 2025, 2:29pm UTC](https://community.deeplearning.ai/t/error-in-coursera-notebook-lab/810557/1 "2025-05-05T14:29:15Z")

</div>

“There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:name ‘time\_valid’ is not defined”  
notebook code:avvohobjqprg  
All tests in the notebook run correctly, but when I submit, I get this error. If possible, please send me an email, as I couldn’t find where to send a message on the ‘deeplearning.ai’ platform

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [May 5, 2025, 2:51pm UTC](https://community.deeplearning.ai/t/error-in-coursera-notebook-lab/810557/2 "2025-05-05T14:51:18Z")

</div>

Hi, Victor.

You filed [a message about this same error on March 21](https://community.deeplearning.ai/t/compilation-error-in-the-tensorflow-developer-course-c4w1/789143) and mentor Balaji gave you some suggestions of what can cause an error like that. Did you follow up on his suggestions?

Search the notebook for the variable name `time_valid`. Where does that string occur? Is it the name of a global variable? Do you reference that variable in the body of any of your graded functions?

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/165831_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [May 5, 2025, 2:53pm UTC](https://community.deeplearning.ai/t/error-in-coursera-notebook-lab/810557/3 "2025-05-05T14:53:11Z")

</div>

hi @VictorMaeda

Go through the below link to debug your codes. A feedback information like yours is probably trying to check if you are implementing your time series function correctly, like using len function instead of using the assignment recall function to define a give period.

> [@C4W1 Assignment compiling error resulting in 0 points](https://community.deeplearning.ai/t/c4w1-assignment-compiling-error-resulting-in-0-points/705962/9):
>
> hi @edmos7 When you do now correction please make sure to get a fresh copy of assignment and only write codes between assigned markers ###START AND END CODE HERE### and making sure not to delete the already given instructions and do not add your own way of writing the codes. You suppose to only replace None placed between the Markers ###START AND END CODE HERE### without editing the already given instructions or part of codes already given to you when you first open the assignment notebook. By…

After going through the post, if you still encounter the same feedback, then click on my name and then message me screenshots of grade function cell.

Make sure not to post any grade function codes here as it is against community guidelines to post on public post thread.

Regards  
DP
