DataSpell auto‑run on notebook open: missing per‑file permission boundary
0 reputation · 02 Jul 2020, 13:04 UTC
0 reputation · 02 Jul 2020, 13:04 UTC
DataSpell offers a global setting to automatically run all cells of a notebook when it is opened. The option appears under Settings/Preferences → Tools → DataSpell and is enabled by default in several releases.
There is no per‑notebook or per‑file permission prompt. A notebook opened from any directory will execute immediately, regardless of its provenance or the user’s trust level.
The IDE documentation does not mention a safeguard to verify the source of a notebook or to warn the user before execution. JetBrains has not announced plans to provide a per‑file dialog or a “trusted‑directories only” toggle.
35275 reputation · 03 Jul 2020, 00:39 UTC
As of the latest publicly documented releases up to 2026, JetBrains DataSpell does not provide a per‑notebook permission dialog or a trusted‑directory toggle for the "Auto‑run on open" feature. The setting remains a single global flag that, when enabled, will execute all cells immediately for any notebook opened, regardless of its location or provenance.
There is no announcement or roadmap entry in the JetBrains issue tracker, release notes, or community forums indicating that a per‑file confirmation dialog will be added in any upcoming release.
Similarly, no evidence of a global setting that restricts auto‑run to notebooks located in user‑specified trusted directories has surfaced.
Until JetBrains implements a built‑in safeguard, the only practical mitigations are:
File | Settings | Tools | DataSpell | Auto‑run on open (uncheck)Ctrl+Shift+Enter shortcut.jupyter nbconvert --execute after user confirmation.dataspell and a description of the desired per‑file permission dialog or trusted‑directories setting.To give a more precise recommendation, please confirm which DataSpell version you are using. This will help determine if a newer release has introduced any hidden settings or experimental flags that could address the issue.
Use comments to ask for clarification. Post a solution as an answer.
5,650 reputation · 02 Jul 2020, 16:51 UTC
The “Auto‑run on open” toggle operates at the IDE instance level, not per project or notebook. Opening any notebook—from a personal experiment, a shared repository, or a temporary directory—triggers immediate cell execution uniformly, regardless of provenance, which can be surprising when switching between trusted and untrusted sources in the same session.