Repository navigation
docs: adding documentation about converting notebook - #78
jamesbhobbs merged 15 commits into
Conversation
|
Warning Rate limit exceeded@jamesbhobbs has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 46 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds two documentation pages for the @deepnote/convert tool: docs/converting-notebooks.md — a user guide describing installation, CLI usage (single/multiple notebooks and directories), command options, conversion details, limitations, CI/batch examples, and references; and packages/convert/examples/convert-programmatically.md — Node.js/TypeScript examples and API docs for convertIpynbFilesToDeepnoteFile (parameters, return value, error-handling, and multi-file usage). Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant CLI as @deepnote/convert CLI
participant FS as Filesystem (.ipynb)
participant Conv as Converter (core lib)
participant Out as Deepnote project files
rect rgb(230,245,255)
Dev->>CLI: run `deepnote-convert my_notebook.ipynb` (or glob/dir)
CLI->>FS: read .ipynb files
FS-->>CLI: file contents
CLI->>Conv: invoke conversion pipeline
Conv->>Out: generate deepnote.project.json + assets
Out-->>CLI: write files to disk
CLI-->>Dev: exit code / logs (success or errors)
end
sequenceDiagram
participant App as Node.js app
participant API as convertIpynbFilesToDeepnoteFile()
participant FS as Filesystem (.ipynb)
participant Conv as Converter (core lib)
participant Out as Deepnote project files
rect rgb(245,255,240)
App->>API: call with inputFilePaths[], options
API->>FS: read provided .ipynb files
FS-->>API: contents or read errors
API->>Conv: run conversion logic
Conv->>Out: produce project file(s)
Out-->>API: resolve Promise or throw Error
API-->>App: Promise resolves or rejects (try/catch)
end
Possibly related PRs
Suggested reviewers
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Comment |
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/converting-notebooks.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/converting-notebooks.md
🔇 Additional comments (1)
docs/converting-notebooks.md (1)
1-318: LGTM: Comprehensive and well-structured documentation.The documentation is clear, thorough, and follows a logical flow from installation through practical use cases. Code examples are accurate and the API reference is concise. The YAML frontmatter and CI/CD workflow examples add practical value for users.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## docs-updates #78 +/- ##
=============================================
Coverage 92.11% 92.11%
=============================================
Files 20 20
Lines 431 431
Branches 119 119
=============================================
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: 1
♻️ Duplicate comments (5)
docs/converting-notebooks.md (5)
19-19: Remove redundant heading text."Installation" already conveys intent; the phrase "how to install @deepnote/convert" is redundant.
-## How to install @deepnote/convert +## Installation
318-318: Fix grammatical error in closing line.Awkward phrasing with repeated/unclear intent.
-Want to have more, visit [deepnote.com](https://deepnote.com) +Want more than a local setup? Visit [deepnote.com](https://deepnote.com)
2-10: Consider mentioning bidirectional conversion potential in opening.The title and intro focus only on
.ipynb→.deepnotedirection. Past feedback noted the conversion is bidirectional; consider briefly mentioning both directions early to set expectations.
279-302: GitHub Actions versions are outdated; update to v4.The workflow uses
actions/checkout@v3,actions/setup-node@v3, andactions/upload-artifact@v3. These should be updated to v4 (current stable).- uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: "18" - run: npm install -g @deepnote/convert - run: deepnote-convert notebooks/ -o dist/ - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4
304-316: Make "Next steps" more actionable with embedded links.The section lists steps but directs to related docs at the end. Embed the relevant links inline to guide users immediately.
## Next steps After converting your notebooks: -1. **Open in Deepnote**: Load the `.deepnote` file in the Deepnote application -2. **Configure environment**: Set up Python packages and environment variables -3. **Run notebooks**: Execute cells to ensure everything works +1. **Open in Deepnote**: Load the `.deepnote` file in the Deepnote application +2. **Configure environment**: See [Local Setup Guide](./local-setup.md) for environment setup +3. **Run notebooks**: Execute cells to ensure everything works + +See [Related documentation](#related-documentation) for more resources.
📜 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/converting-notebooks.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/converting-notebooks.md
🔇 Additional comments (1)
docs/converting-notebooks.md (1)
49-49: Documentation is accurate.The docs state Node.js 18 or higher, which matches the
@deepnote/convertpackage'senginesfield ("node": ">=18"). No updates needed.
There was a problem hiding this comment.
Actionable comments posted: 4
♻️ Duplicate comments (2)
docs/converting-notebooks.md (2)
194-194: Fix incomplete closing sentence.The final sentence is grammatically incomplete and awkward.
-Want to have more, visit [deepnote.com](https://deepnote.com) +For more information, visit [deepnote.com](https://deepnote.com)
19-19: Simplify redundant heading.The heading combines "How to" with "install," which is redundant. Align with the pattern in past feedback.
-## How to install @deepnote/convert +## Installation
📜 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 (2)
docs/converting-notebooks.md(1 hunks)packages/convert/examples/convert-programaticaly.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:
packages/convert/examples/convert-programaticaly.mddocs/converting-notebooks.md
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (4)
docs/converting-notebooks.md (4)
20-20: Simplify redundant heading."How to install @deepnote/convert" is redundant; the section context already signals installation intent.
-## How to install @deepnote/convert +## Installation
131-131: Fix typo in documentation link.The URL references
convert-pogramaticaly.md(missing 'r'); correct toconvert-programaticaly.md.-You can use the conversion function programmatically in Node.js or TypeScript applications. Learn more in [In our converter examples repository](https://github.com/deepnote/deepnote/tree/main/packages/convert/examples/convert-pogramaticaly.md). +You can use the conversion function programmatically in Node.js or TypeScript applications. Learn more in [In our converter examples repository](https://github.com/deepnote/deepnote/tree/main/packages/convert/examples/convert-programaticaly.md).
210-210: Improve closing sentence clarity."Want to have more, visit deepnote.com" is awkward; rephrase for clarity.
-Want to have more, visit [deepnote.com](https://deepnote.com) +For more features, visit [deepnote.com](https://deepnote.com)
10-10: Remove bidirectional conversion claim from intro.Line 10 asserts "how to convert Deepnote projects to Jupyter notebooks," but the guide documents only
.ipynb→.deepnotedirection via CLI. Section 162 covers the reverse flow only through the web app, not programmatically. Remove the bidirectional claim to accurately reflect the documented scope.-This guide explains how to convert Jupyter Notebook files (`.ipynb`) to Deepnote project files (`.deepnote`) and how to convert Deepnote projects to Jupyter notebooks using the `@deepnote/convert` tool. +This guide explains how to convert Jupyter Notebook files (`.ipynb`) to Deepnote project files (`.deepnote`) using the `@deepnote/convert` tool.
📜 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/converting-notebooks.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/converting-notebooks.md
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/converting-notebooks.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/converting-notebooks.md
🧠 Learnings (1)
📚 Learning: 2025-10-31T19:29:16.136Z
Learnt from: Yggdrasill501
Repo: deepnote/deepnote PR: 78
File: docs/converting-notebooks.md:30-36
Timestamp: 2025-10-31T19:29:16.136Z
Learning: In docs/converting-notebooks.md, post-conversion steps (Open in Deepnote, Configure environment, etc.) should remain directly after the global installation section, not moved to after CLI usage.
Applied to files:
docs/converting-notebooks.md
There was a problem hiding this comment.
Actionable comments posted: 1
📜 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/converting-notebooks.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/converting-notebooks.md
🧠 Learnings (1)
📚 Learning: 2025-10-31T19:29:16.136Z
Learnt from: Yggdrasill501
Repo: deepnote/deepnote PR: 78
File: docs/converting-notebooks.md:30-36
Timestamp: 2025-10-31T19:29:16.136Z
Learning: In docs/converting-notebooks.md, post-conversion steps (Open in Deepnote, Configure environment, etc.) should remain directly after the global installation section, not moved to after CLI usage.
Applied to files:
docs/converting-notebooks.md
🔇 Additional comments (1)
docs/converting-notebooks.md (1)
1-218: Documentation looks well-structured overall.The guide is comprehensive, covers CLI and programmatic usage, includes examples, and clearly documents the conversion workflow. Previous feedback from earlier reviews has been incorporated (bidirectional mention with supporting sections, proper link text, improved closing line). Layout and flow are logical.
…s-converting-docs
* 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