跳到主要内容

Jupyter 笔记本整理

收藏0

Jupyter Notebook

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

让 AI 安装

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

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

references/notebook-structure.md

751 B查看排版效果
1# Notebook Structure
2
3Jupyter notebooks are JSON documents with this high-level shape:
4
5- `nbformat` and `nbformat_minor`
6- `metadata`
7- `cells` (a list of markdown and code cells)
8
9When editing `.ipynb` files programmatically:
10
11- Preserve `nbformat` and `nbformat_minor` from the template.
12- Keep `cells` as an ordered list; do not reorder unless intentional.
13- For code cells, set `execution_count` to `null` when unknown.
14- For code cells, set `outputs` to an empty list when scaffolding.
15- For markdown cells, keep `cell_type="markdown"` and `metadata={}`.
16
17Prefer 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.

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