question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nbgrader config change to ExecutePreprocessor.timeout seems to be ignored

See original GitHub issue

Operating system

Windows 10

nbgrader --version

0.5.4

jupyterhub --version (if used with JupyterHub)

NA

jupyter notebook --version

5.0.0

Expected behavior

I’ve created a lab exercise in which students read files and run code on them; I created a bunch of hidden tests to check their output.

Actual behavior

When I try to validate the code, I get a ‘Keyboard Interrupt’, which appears to be a timeout error in validating the code. I’ve tried to set the configuration file to change c.ExecutePreprocessor.timeout to None or 300, but this change in parameter seems to be ignored for several cells. When I start the notebook with the --debug option on, I get errors during the validate of the following sort: [E 16:30:43.087 NotebookApp] Timeout waiting for execute reply (30s). even though I’ve set the parameter value to None or 300, suggesting that the default has overridden my change in parameter. I’ve checked via the logs that the code is reading the config file from the correct file.

Steps to reproduce the behavior

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
heathermillercommented, Feb 5, 2020

I’m still having this problem, exactly the same as described above. Like @davidpwilliamson above, I’ve run jupyter notebook with the --debug option on, and I’ve verified that the nbgrader_config.py file is being read, both in the root course directory as well as in the notebook directory.

When validating the notebook, I consistently get errors of the form:

[NotebookApp | ERROR] Timeout waiting for execute reply (30s).

Despite the fact that c.ExecutePreprocessor.timeout = 60 in the nbgrader_config.py file in my notebook directory.

0reactions
RonaldEnsingcommented, Sep 23, 2021

I am running into the same issue with nbgrader version 0.6.2 on Linux. Running nbgrader validate <my_assignment>.ipynb I get the following output after -+120 seconds, even though I set c.ExecutePreprocessor.timeout = 600:

[ValidateApp | ERROR] Timeout waiting for execute reply (30s).
[ValidateApp | ERROR] Interrupting kernel
Success! Your notebook passes all the tests.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration options — nbgrader 0.7.2.dev documentation
These options can be set in nbgrader_config.py , or at the command line when ... Upon copying directories recursively, non matching files will...
Read more >
nbgrader generate config - Read the Docs
Upon copying directories recursively, larger files will be ignored with a warning. Default: 100000 --CourseDirectory.notebook_id=<Unicode> File glob to match ...
Read more >
Frequently asked questions — nbgrader 0.8.1 documentation
This timeout is customizable through the ExecutePreprocessor.timeout configuration ... you will want to set the following config options in your students' ...
Read more >
Changelog — nbgrader 0.7.2.dev documentation
PR #1559: Fix breaking tests due to changes in the newest Jinja2 release ... PR #1075: Give ExecutePreprocessor the Traitlets config during validation....
Read more >
Exchanging assignment files — nbgrader 0.8.1 documentation
In the config file, we've specified the “exchange” directory to be /tmp/exchange . ... After the assignment is fetched, it will appear in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found