Hello
I am having problems submitting the first assignment of the course, it cannot be graded, the kernel dies.
- I have not placed code outside the
### YOUR CODE STARTS/ENDS HERE - I have not changed variables or introduced new ones
- I have not added any prints
- I have followed HELP - dead kernel errors and the notebook gives me zero points - #13 by Deepti_Prasad to get a fresh copy and carefully paste the code.
- I am using the libraries and calls they ask me for, I don’t introduce new dependencies.
The error is cryptic.
[ValidateApp | INFO] Validating '/home/jovyan/work/submitted/courseraLearner/W2A2/Logistic_Regression_with_a_Neural_Network_mindset.ipynb'
[ValidateApp | INFO] Executing notebook with kernel: python3
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
[ValidateApp | ERROR] Kernel died while waiting for execute reply.
[ValidateApp | ERROR] Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 478, in _poll_for_reply
msg = self.kc.shell_channel.get_msg(timeout=timeout)
File "/opt/conda/lib/python3.7/site-packages/jupyter_client/blocking/channels.py", line 57, in get_msg
raise Empty
_queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/nbgrader/preprocessors/execute.py", line 41, in preprocess
output = super(Execute, self).preprocess(nb, resources)
File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 405, in preprocess
nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/base.py", line 69, in preprocess
nb.cells[index], resources = self.preprocess_cell(cell, resources, index)
File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 438, in preprocess_cell
reply, outputs = self.run_cell(cell, cell_index, store_history)
File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 578, in run_cell
exec_reply = self._poll_for_reply(parent_msg_id, cell, timeout)
File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 483, in _poll_for_reply
self._check_alive()
File "/opt/conda/lib/python3.7/site-packages/nbconvert/preprocessors/execute.py", line 510, in _check_alive
raise DeadKernelError("Kernel died")
nbconvert.preprocessors.execute.DeadKernelError: Kernel died
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/nbgrader/apps/validateapp.py", line 72, in start
validator.validate_and_print(filename)
File "/opt/conda/lib/python3.7/site-packages/nbgrader/validator.py", line 340, in validate_and_print
results = self.validate(filename)
File "/opt/conda/lib/python3.7/site-packages/nbgrader/validator.py", line 311, in validate
nb = self._preprocess(nb)
File "/opt/conda/lib/python3.7/site-packages/nbgrader/validator.py", line 290, in _preprocess
nb, resources = pp.preprocess(nb, resources)
File "/opt/conda/lib/python3.7/site-packages/nbgrader/preprocessors/execute.py", line 44, in preprocess
raise UnresponsiveKernelError()
nbgrader.preprocessors.execute.UnresponsiveKernelError
[ValidateApp | ERROR] nbgrader encountered a fatal error while trying to validate 'submitted/courseraLearner/W2A2/Logistic_Regression_with_a_Neural_Network_mindset.ipynb'
I also tried what Paul Mielke said in FAQ: Frequently Asked Questions for all DLS Courses
Kernel -> Restart & Clear Output
File -> Save and Checkpoint
Submit Assignment
I don’t know what else to try.