Skip to content

Papermill + executing only one cell #725

@sarahdejong

Description

@sarahdejong

Hi! I'm using papermill to run my input notebook for different parameters and then export them all to htmls. In my input notebook, I have the following cell, because I need to rerun a cell earlier in the notebook.

from IPython.display import Javascript
Javascript("Jupyter.notebook.execute_cells([20])")

This works fine when running the original input notebook by itself, but when running it with papermill it doesn't seem to work. Is there any way to make it work, or alternatively, is there a way in papermill to run only one cell of a notebook (then I could potentially export the data I need to csv and run it a second time with only that cell)?

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions