Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
1–10 of 71 posts
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#2- You cannot extract live variables (needed for testing)
- Cannot use pdb for debugging
- Cannot profile memory usage
You can do all of that with ploomber-engine (https://github.com/ploomber/ploomber-engine).
Disclaimer: I'm the author of this package
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#3Papermill is great but has quite some limitations because it spins up a new process to run the notebook: - You cannot extract live variables (needed for testing) - Cannot use pdb for debugging - Cannot profile memory usage You can do all of that with ploomber-engine ( https://github.com/ploomber/ploomber-engine ). Disclaimer: I'm the author of this package
>Ploomber (YC W22) co-founder.
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#4Papermill is great but has quite some limitations because it spins up a new process to run the notebook: - You cannot extract live variables (needed for testing) - Cannot use pdb for debugging - Cannot profile memory usage You can do all of that with ploomber-engine ( https://github.com/ploomber/ploomber-engine ). Disclaimer: I'm the author of this package
Papermill is great, but yes: lots of room to hack on it and make it better.
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#5Papermill is great but has quite some limitations because it spins up a new process to run the notebook: - You cannot extract live variables (needed for testing) - Cannot use pdb for debugging - Cannot profile memory usage You can do all of that with ploomber-engine ( https://github.com/ploomber/ploomber-engine ). Disclaimer: I'm the author of this package
iirc, a few years back I was able to do all of these things with the Papermill IPython runtime. Papermill is great, but yes: lots of room to hack on it and make it better.
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#6Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#7Hell no. I want to rewrite all that as a proper script or Python module.
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#8What is the benefit of parameterizing a jupyter notebook over just writing python that's not in a jupyter notebook? I like jupyter notebooks for rapid prototyping but once I want to dial some logic in, I switch to just writing a .py file.
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#9What is the benefit of parameterizing a jupyter notebook over just writing python that's not in a jupyter notebook? I like jupyter notebooks for rapid prototyping but once I want to dial some logic in, I switch to just writing a .py file.
Not one of my proudest moments, but it got the job done.
Re: Papermill: Parameterizing, executing, and analyzing Jupyter Notebooks
#10What is the benefit of parameterizing a jupyter notebook over just writing python that's not in a jupyter notebook? I like jupyter notebooks for rapid prototyping but once I want to dial some logic in, I switch to just writing a .py file.
If they can call the notebook like a function, the second person's job becomes much easier.