jupyter / jupyter/notebook

%%javascript cells executing unconditionally for a trusted notebook

Open
#3,149 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Upon experimenting with %%javascript cells in notebooks, I was surprised to discover that they execute unconditionally upon loading a trusted notebook (even with F5).

This is a very pleasant surprise to me, please don't change this behavior!
It's just that I didn't expect it, based on my understanding of this documentation:
http://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/JavaScript%20Notebook%20Extensions.html

I am running Jupyter core 4.4.0

Contributor guide

Open the contributing guide

Research direction

Start with the linked JavaScript Notebook Extensions documentation and compare its explanation with the reported behavior in Jupyter core 4.4.0. Done means the documentation clearly explains whether %%javascript cells execute when a trusted notebook loads, including the F5 case.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
documentation, security
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.