Home

Notebooks

This page lists the safe and destructive patterns in the Jupyter Notebooks shell guard pack. See Shell Tool for how these patterns are evaluated.

Jupyter Notebooks

Pack ID: notebooks.jupyter

Guards against destructive Jupyter notebook operations

Safe patterns

Rule IDPattern
notebooks.jupyter.jupyter_kernelspec_list^jupyter\s+kernelspec\s+list\b[^|><]*$

Destructive patterns

Rule IDReasonSuggestionConfidence
notebooks.jupyter.nbstripoutStrips output cells from notebooks, permanently removing computed resultsBackup the notebook first; use nbstripout --dry-run if available to previewMedium
notebooks.jupyter.nbconvert_inplaceIn-place notebook conversion overwrites the original fileUse --output to write to a new file instead of --inplaceMedium
notebooks.jupyter.jupyter_kernelspec_uninstallRemoves a Jupyter kernel specificationUse jupyter kernelspec list to review installed kernels firstMedium

This documentation was generated from rust/agents/src/tool_guard/shell/packs/notebooks.rs.

© 2026 Stencila