papermill icon indicating copy to clipboard operation
papermill copied to clipboard

Leave notebook running after execution

Open durocher opened this issue 5 years ago • 1 comments

I would like to run my notebook using papermill and then be able to open it with all variables still in memory and keep using it. Even when passing an explicit  kernel_name, they output notebook is not running when I open it.

Is there a way to leave the notebook kernel running?

durocher avatar Apr 20 '20 18:04 durocher

No there's not an option for that today. You'd have to extend and modify https://github.com/nteract/papermill/blob/master/papermill/clientwrap.py#L36, then register it as a new engine. Papermill has some stronger opinions than the underlying tools it uses, like nbclient, which comes with some restrictions like this.

MSeal avatar Apr 20 '20 19:04 MSeal