Skip to content
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

output saved partially to the notebook when executing with timeout=-1 #968

Closed
shamimtowhid opened this issue Mar 14, 2019 · 2 comments
Closed

Comments

@shamimtowhid
Copy link

shamimtowhid commented Mar 14, 2019

I executed a notebook with nbconvert command and the notebook takes a long time to be fully executed. It finishes successfully executing. However the output is partially written in the new notebook. Is there any way to write the output to the files during execution?

Note: I was trying to save the output in the same file with --inplace=True.

@MSeal
Copy link
Contributor

MSeal commented Mar 18, 2019

Currently no. The processor builds the whole notebook and then persists it into the desired format. https://papermill.readthedocs.io/en/latest/ wraps nbconvert and it will save notebook execution after each cell completes (and optionally log to stdout/err during cell execution). After I finish #905 it should be more feasible to potentially allow similar behavior directly in nbconvert.

@shamimtowhid
Copy link
Author

Thanks for the reply. I think #905 will be helpful for me. For now I should use log files as a solution.

@MSeal MSeal closed this as completed Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants