This message was deleted.
# ask-anything
s
This message was deleted.
e
hey, not currently. but you could call
papermill.execute_notebook
inside the function to do so. what's your use case?
j
Hmm, makes sense. I typically use functions instead of whole scripts, and was wondering if I had to use scripts.
wait but Papermill executes notebooks right?
I meant I have some tasks that are actual functions and not .py files, and I'm interested in turning their executions into notebooks
e
yeah, papermill executes notebooks, so if you want to execute as script as a notebook, you need to use jupytext to convert py -> notebook, then execute with papermill
maybe the best way is to do some little refactoring to turn those functions into notebooks, what do you think?
j
basically I had several tasks in one file as functions
but maybe it makes sense to refactor some of them into running scripts
👍 1
anyway, thanks!
e
sure!