跳到主要内容

Jupyter 笔记本整理

收藏0

Jupyter Notebook

创建、整理和改造 Jupyter Notebook,用于实验记录、教程和可复现分析。

让 AI 安装

灵栈官方最新版本 0.1.0更新于 2026-10-16下载 1 次

  • Jupyter
  • Notebook
  • 实验记录
  • 教程
  • Python
  • 可复现

references/notebook-structure.md

751 B查看源码

Notebook Structure#

Jupyter notebooks are JSON documents with this high-level shape:

  • nbformat and nbformat_minor
  • metadata
  • cells (a list of markdown and code cells)

When editing .ipynb files programmatically:

  • Preserve nbformat and nbformat_minor from the template.
  • Keep cells as an ordered list; do not reorder unless intentional.
  • For code cells, set execution_count to null when unknown.
  • For code cells, set outputs to an empty list when scaffolding.
  • For markdown cells, keep cell_type="markdown" and metadata={}.

Prefer scaffolding from the bundled templates or new_notebook.py (for example, $CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py) instead of hand-authoring raw notebook JSON.

文件内容是平台检查时读出的文本,只供查看。平台不会运行包里的任何脚本或程序。