-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treon stops running with multiple threads #15
Comments
@asteppke Thanks for reporting. From this comment it looks like the issue is resolved in nbconvert 5.6.0. Shouldn't our problem be solved by upgrading to that version? Also, what's the exact failure beahviour you are seeing? Is it reproducible? If yes, please share the steps so we can try it out. |
When starting the current version of
Then I receive the following error messages:
The directory where This is related to the jupyter client, it looks like a race condition in the module determining the local ip addresses. It is reproducible on several computers. I assume the key ingredients are a Windows system, at least one network interface besides localhost, and several notebooks which |
What's your Reference: https://jupyter-notebook.readthedocs.io/en/stable/config.html |
Generating a configuration and setting
It seems that the nbconvert mechanic is ignoring this configuration variable. What seems to be the underlying issue is that So I think a workaround would be to call nbconvert in a different process or get an upstream patch into |
This PR in |
When running treon on Windows 10 with multiple threads it sometimes stops running because of issues with the underlying jupyter client.
To some extent this is an issue with the jupyter client, and or nbconvert but treon is triggering the issue by calling nbconvert in multiple threads.
The error message and discussion of the jupyter client is at this issue: jupyter/jupyter_client#466
For treon a workaround though would be to use multiple processes instead of threads. Ipython does not seem to be thread-safe as of now but this is being worked on (jupyter/nbconvert#936).
The text was updated successfully, but these errors were encountered: