There is a similar thread related to your issue, make sure your code are written as per the instructions give in the excercise
please refer this thread
Also kindly remove the image where you sharing grade function codes which grades your assignment, that is a violation of Code of Conduct and against community guidelines. if a mentor wants to see your codes, they would ask you to send them by personal DM
Yes, of course the assignment runs in the notebook server for the lab. That is all handled by the Coursera platform.
To test the lab notebook I downloaded and ran the same notebook on my local machine.
Python version: 3.13
Jupyter core: 5.7.2
Ipython: 8.28
Host OS: macos 15.5
No, the time out occurs when the Coursera grader runs the lab notebook. Locally, with the above environment, the cell executes as expected in ~2 minutes and the tests pass.
Interesting. It is possible to add code to measure the compute time on the Coursera servers as well. To avoid messing with the graded cells, I added the following cell to my notebook and here’s what I see:
You can see that it takes just over 12 seconds of compute time to run my version of that code. I tried it several times and the times are pretty consistent. It might be worth trying that in your notebook on Coursera and see what you get. The code you showed (now edited out) looked the same as mine for dLdOmega_of_omega_array, but notice that you are also invoking your earlier code as a subroutine there. Maybe your logic for L_of_omega is inefficient somehow.
So, I have not changed L_of_omega. @Deepti_Prasad mention of f_of_omega implementation is the solution, at least to the issue I had. Thanks for the input on this everyone.
Just to make sure I’m understanding the state of play: it sounds like you’re saying that you’ve found the solution here. If so, that’s great news.
i think the grader feedback for time out error lies in the same screenshot solution I shared with you, where it shows prices are converted into numpy arrays and if the implementation are incorrect, it probably led to subsequent error as per grader file I just checked where exercise 4 is an organised function to check if all the previous grade functions are correctly written as per calculations.