Repository navigation
docs: adding documentation about migrating to ipynb - #82
jamesbhobbs merged 6 commits into
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughAdds 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 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
Possibly related PRs
Suggested reviewers
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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.
📒 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/blocksand are properly exported. The example correctly accesses block properties (type,executionCount,outputs,content) defined in theDeepnoteBlockschema, and the Jupyter notebook structure (nbformat 4.5) is valid.
c7d21aa to
e403db8
Compare
…s-migrating-to-ipynb
…s-migrating-to-ipynb
* 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>
Summary by CodeRabbit
Documentation
Chores