Skip to content

docs: adding documentation about converting notebook - #78

Merged
jamesbhobbs merged 15 commits into
docs-updatesfrom
filipzitny/mar-344-write-new-oss-docs-converting-docs
Oct 31, 2025
Merged

jamesbhobbs merged 15 commits into
docs-updatesfrom
filipzitny/mar-344-write-new-oss-docs-converting-docs

Conversation

@Yggdrasill501

@Yggdrasill501 Yggdrasill501 commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive guide for converting Jupyter notebooks to Deepnote format, covering installation, CLI usage for single files, multiple files, and entire directories.
    • Added programmatic usage examples and API guidance for batch and scripted conversions, including options, error-handling patterns, and sample CI/workflow snippets.
    • Documented project structure, conversion limitations, and guidance for converting Deepnote projects back to Jupyter notebooks.

@linear

linear Bot commented Oct 31, 2025

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Oct 31, 2025 •

Copy link
Copy Markdown
Contributor

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

📥 Commits

Reviewing files that changed from the base of the PR and between ac3762f and e21bebf.

📒 Files selected for processing (2)
  • docs/converting-notebooks.md (1 hunks)
  • packages/convert/docs/convert-programmatically.md (1 hunks)
📝 Walkthrough

Walkthrough

Adds 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
Loading
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
Loading

Possibly related PRs

Suggested reviewers

  • saltenasl

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 PR title "docs: adding documentation about converting notebook" directly corresponds to the changeset's main objective: adding comprehensive documentation about converting Jupyter notebooks to Deepnote format. Both files added (docs/converting-notebooks.md and packages/convert/examples/convert-programmatically.md) center on notebook conversion guidance. The title is clear, concise, and communicates the primary change without unnecessary noise, allowing teammates to quickly understand the PR's purpose when reviewing history.

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

@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 c1344f7.

📒 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.

Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
@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 (39abe61) to head (e21bebf).
⚠️ Report is 1 commits behind head on docs-updates.

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.
📢 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.

Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
@Yggdrasill501 Yggdrasill501 self-assigned this Oct 31, 2025

@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: 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 → .deepnote direction. 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, and actions/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.

📥 Commits

Reviewing files that changed from the base of the PR and between c1344f7 and cd225e3.

📒 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/convert package's engines field ("node": ">=18"). No updates needed.

Comment thread docs/converting-notebooks.md Resolved

@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: 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.

📥 Commits

Reviewing files that changed from the base of the PR and between cd225e3 and f2284c7.

📒 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.md
  • docs/converting-notebooks.md

Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved

@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: 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 to convert-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 → .deepnote direction 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.

📥 Commits

Reviewing files that changed from the base of the PR and between f2284c7 and e021768.

📒 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

Comment thread docs/converting-notebooks.md Resolved

@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 f9fe740 and 4bcdbe6.

📒 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

Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved

@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: 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.

📥 Commits

Reviewing files that changed from the base of the PR and between 4bcdbe6 and 82abc00.

📒 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.

Comment thread docs/converting-notebooks.md Resolved
@jamesbhobbs
jamesbhobbs changed the base branch from main to docs-updates October 31, 2025 19:58
Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
Comment thread docs/converting-notebooks.md Resolved
@jamesbhobbs
jamesbhobbs marked this pull request as ready for review October 31, 2025 20:23
@jamesbhobbs
jamesbhobbs requested a review from a team as a code owner October 31, 2025 20:23
@jamesbhobbs
jamesbhobbs merged commit c338a22 into docs-updates Oct 31, 2025
@jamesbhobbs
jamesbhobbs deleted the filipzitny/mar-344-write-new-oss-docs-converting-docs branch October 31, 2025 20:24
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.

3 participants