Skip to content

Unpaired text notebooks cannot be trusted #941

Closed
@mwouts

Description

Text notebooks that are not paired to an .ipynb document cannot be trusted.

This is an issue for text notebooks that display some Javascript code, like in the jupyter book that documents my itables project, because the JS code cannot be executed when the notebook is not trusted.

The problem disappears when the notebook is paired to an .ipynb file.

I believe this is because the cell ids are regenerated every time the notebook is re-opened, and in particular when we click on "trust" the cell ids are not the same as when the notebook is reloaded the next time.

I'll see if I can find a wait to initialize deterministically the cell id generator (based possibly on the content of the notebook being opened?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions