papermill icon indicating copy to clipboard operation
papermill copied to clipboard

papermill can't execute notebook %run

Open truonghatsts opened this issue 5 years ago • 1 comments

In my notebook, I want to run some other notebooks with %run, it can execute successfully on jupyter but could not run by papermill. Please tell me how to make papermill work with this?

truonghatsts avatar May 10 '20 10:05 truonghatsts

So one of the issues is captured here https://github.com/jupyter/nbclient/issues/48 -- there's already a PR for that https://github.com/ipython/ipython/pull/12301 to fix the lack of an error response.

If you're in a notebook already, why not just use papermill.execute_notebook(...) in python rather than using %run? If you really just want to use the command line %%bash works better for most cases I have found.

MSeal avatar May 11 '20 00:05 MSeal