Skip to content

docs: adding documentation about migrating to ipynb - #82

Merged
jamesbhobbs merged 6 commits into
docs-updatesfrom
filipzitny/mar-344-write-new-oss-docs-migrating-to-ipynb
Oct 31, 2025
Merged

jamesbhobbs merged 6 commits into
docs-updatesfrom
filipzitny/mar-344-write-new-oss-docs-migrating-to-ipynb

Conversation

@Yggdrasill501

@Yggdrasill501 Yggdrasill501 commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation

    • Added a migration guide for converting Deepnote projects to Jupyter (.ipynb), including manual export steps, what converts well vs. requires adaptation, example programmatic workflows, and recommended alternative tooling.
  • Chores

    • Expanded the spelling dictionary to include notebook and conversion tool names (nbconvert, Papermill, Jupytext, kernelspec).

@linear

linear Bot commented Oct 31, 2025

Copy link
Copy Markdown

@Yggdrasill501 Yggdrasill501 self-assigned this Oct 31, 2025
@coderabbitai

coderabbitai Bot commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Adds docs/migrating-to-ipynb.md describing migration from Deepnote (.deepnote) to Jupyter (.ipynb). The doc documents three approaches: manual export via the Deepnote UI, clarifies that @deepnote/convert converts ipynb→deepnote (not reverse), and provides a programmatic workflow using @deepnote/blocks to deserialize Deepnote files, map blocks to Jupyter cells, build ipynb JSON, and write .ipynb files. It lists what converts well, what needs adaptation, what doesn’t convert, and mentions alternatives (nbconvert, Papermill, Jupytext). Also adds new spellchecker words in cspell.json. No code/API signatures changed.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer / Script
    participant FS as File system (.deepnote)
    participant Blocks as @deepnote/blocks
    participant Mapper as Block → Cell mapper
    participant IPYNB as ipynb builder
    participant Writer as File writer (.ipynb)

    Dev->>FS: read .deepnote file (buffer/string)
    FS-->>Dev: .deepnote payload

    Dev->>Blocks: deserialize(payload)
    Blocks-->>Dev: Array<Block>

    Dev->>Mapper: map Blocks to Jupyter cells
    Mapper-->>Dev: Array<Cell>

    Dev->>IPYNB: construct ipynb structure (metadata, cells)
    IPYNB-->>Dev: ipynb JSON

    Dev->>Writer: write ipynb JSON -> .ipynb
    Writer-->>Dev: success / error

    alt success
        Note right of Dev#lightblue: .ipynb produced
    else error
        Note right of Dev#lightcoral: manual adaptation required for some blocks
    end
Loading

Possibly related PRs

Suggested reviewers

  • saltenasl
  • Artmann

Pre-merge checks

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "docs: adding documentation about migrating to ipynb" directly and clearly describes the primary change: the addition of a new documentation file explaining how to migrate from Deepnote to Jupyter notebooks. The title is specific, uses a clear "docs:" prefix convention, and concisely conveys the main purpose without noise or vagueness. The secondary change to cspell.json is appropriately auxiliary to this documentation addition.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between e403db8 and ef17337.

📒 Files selected for processing (1)
  • docs/migrating-to-ipynb.md (1 hunks)

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Oct 31, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.11%. Comparing base (c338a22) to head (ef17337).
⚠️ Report is 1 commits behind head on docs-updates.

Additional details and impacted files
@@              Coverage Diff              @@
##           docs-updates      #82   +/-   ##
=============================================
  Coverage         92.11%   92.11%           
=============================================
  Files                20       20           
  Lines               431      431           
  Branches            116      116           
=============================================
  Hits                397      397           
  Misses               34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 932652e and 44b985d.

📒 Files selected for processing (1)
  • docs/migrating-to-ipynb.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{md,yml,yaml}

📄 CodeRabbit inference engine (CLAUDE.md)

Use Prettier formatting for Markdown and YAML files

Files:

  • docs/migrating-to-ipynb.md
🪛 GitHub Actions: CI
docs/migrating-to-ipynb.md

[warning] 84-84: CSpell: Unknown word 'kernelspec'.


[warning] 130-130: CSpell: Unknown word 'nbconvert'.


[warning] 131-131: CSpell: Unknown word 'Papermill'.


[warning] 132-132: CSpell: Unknown word 'Jupytext'.

🔇 Additional comments (2)
docs/migrating-to-ipynb.md (2)

1-132: Documentation quality is solid.

The guide is well-structured, clear, and comprehensive. The content aligns with the PR objective, and the formatting appears compliant with Prettier. Resolve the link reference and API verification concerns (see prior comments), then address the CSpell warnings to clear the pipeline.


46-96: APIs verified and accurate.

All three functions (deserializeDeepnoteFile, createPythonCode, createMarkdown) exist in @deepnote/blocks and are properly exported. The example correctly accesses block properties (type, executionCount, outputs, content) defined in the DeepnoteBlock schema, and the Jupyter notebook structure (nbformat 4.5) is valid.

Comment thread docs/migrating-to-ipynb.md Resolved
Comment thread docs/migrating-to-ipynb.md Resolved
@Yggdrasill501
Yggdrasill501 force-pushed the filipzitny/mar-344-write-new-oss-docs-migrating-to-ipynb branch from c7d21aa to e403db8 Compare October 31, 2025 17:49
@jamesbhobbs
jamesbhobbs changed the base branch from main to docs-updates October 31, 2025 19:58
@jamesbhobbs
jamesbhobbs marked this pull request as ready for review October 31, 2025 20:29
@jamesbhobbs
jamesbhobbs requested a review from a team as a code owner October 31, 2025 20:29
@jamesbhobbs
jamesbhobbs merged commit 7292997 into docs-updates Oct 31, 2025
@jamesbhobbs
jamesbhobbs deleted the filipzitny/mar-344-write-new-oss-docs-migrating-to-ipynb branch October 31, 2025 20:30
jamesbhobbs added a commit that referenced this pull request Nov 3, 2025
* docs: fix punctuation

* docs: adding documentation about converting notebook (#78)

* docs: adding doc about converting notebook

* docs: adding doc about converting notebook

* docs: update

* docs: update of content and add example of programatic usage

* docs: update conversion

* Rename convert-programaticaly.md to convert-programmatically.md

* Fix typo in link to converter examples

* docs: update after converting

* docs: update

* docs: clarify sentence's scope ambiguity

* docs: add link to the package

* docs: fix links

* docs: call docs docs, examples would be runnable code

* docs: correct new link

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: adding documentation about migrating to ipynb (#82)

* docs: adding documentation about migrating to ipynb

* chore: adding kernelspec nbconvert papermill and Jupytext

* docs: replace link with documentation link

* docs: .d 2 .i

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: adding documentation about local set-up (#81)

* docs: adding documentation about local set-up

* docs: fix duplicate links

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* chore: adding words into cspell

* docs: fix with prittier

* docs: update table with comparison features

* chore: fix checks

* docs: update vsc v

* docs: add cursor

* docs: we do way more than initially claimed here

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: adding documentation about deepnote format (#79)

* docs: adding documentation about deepnote format

* chore: adding kernelspec to cspell

* docs: adding documentation about organizing notebook into projects (#83)

* docs: adding documentation about organizing notebook into projects

* chore: adding isnull dropna and pyplot to cspell

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>

* chore: fix checks

* docs: rm duplicative content

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: fix typo

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: delete redundant line

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: simplify toolkit inst

* docs: clarify loc of export

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: clarify conversion

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: rm add sec

* docs: fix heading heirarchy

* docs: fix heading heirarchy 2

* chore: lint fix

* docs: how to open deepnote file instructions

* docs: colon

* docs: point to other doc rather than repeat

* docs: adding documentation about running deepnote in jupyterlab (#80)

* docs: adding documentation about deepnote format

* docs: adding documentation about running deepnote in jupyterlab

* chore: adding kernelspec to cspell

* chore: adding ipywidgets into cspell

* docs: fix grammar

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* docs: adding link about migrating to ipynb

* docs: adding documentation about organizing notebook into projects (#83)

* docs: adding documentation about organizing notebook into projects

* chore: adding isnull dropna and pyplot to cspell

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>

* chore: fix checks

* docs: updates

* chore: lint

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>
Co-authored-by: dinohamzic <dino@subtlebits.com>

* docs: writing docs about vs-code extension (#85)

* docs: wiriting docs about vscode extension

* chore: adding venv and reexecuted to cspell

* docs: conent update

* chore: fix checks

* docs: adding documentation about sql-blocks (#84)

* docs: adding documentation about sql-blocks

* chore: adding groupby and tolist into cspell

* docs: adding code block type into md

* chore: fix checks

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>

* chore: rm dupe line

* docs: cut blocks add curosr and windsurf

* docs: del docs on sql blocks, more suitable for general comparison table than oss docs

* docs: fix links to extensions

* docs: fix all issues raised in cr

* docs: shortcuts that are validated to fully work

---------

Co-authored-by: James Hobbs <15235276+jamesbhobbs@users.noreply.github.com>
Co-authored-by: James Hobbs <bjhobbs06@gmail.com>

* docs: fix link

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: fix link 2

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: fix link 3

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: fix link 4

Co-authored-by: Dino Hamzić <dino@subtlebits.com>

* docs: venv through ui only

---------

Co-authored-by: Filip Zitny <88278380+Yggdrasill501@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Dino Hamzić <dino@subtlebits.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants