Repository navigation
docs: adding examples for deepnote oss - #107
Yggdrasill501 wants to merge 6 commits into
Conversation
📝 WalkthroughWalkthroughAdds three example README files under examples/: a guide to convert Jupyter notebooks to Deepnote projects using the deepnote-convert CLI, a Getting Started guide for using Deepnote within Cursor, and a Getting Started guide for using Deepnote within VS Code. Each README documents prerequisites, install/open steps, example commands and options (e.g., --projectName, --outputPath), how to open the resulting .deepnote in Deepnote or editors, troubleshooting notes (npx/global CLI, plain-text YAML), and next-step resources. No code, exported API, or manifest changes were introduced. Sequence Diagram(s)Conversion CLI flow (ipynb → .deepnote → open in Deepnote) sequenceDiagram
participant Dev as Developer (local)
participant CLI as npx deepnote-convert
participant FS as File System
participant Deepnote as Deepnote App (web)
Dev->>CLI: npx deepnote-convert EDA.ipynb --projectName X --outputPath .deepnote
CLI->>FS: read EDA.ipynb
CLI->>FS: write .deepnote/ (project bundle)
CLI-->>Dev: exit (success or error)
Dev->>Deepnote: import or drag-and-drop .deepnote/
Deepnote-->>Dev: project opened
Editor integration flow (open/run Deepnote project in Cursor or VS Code) sequenceDiagram
participant User as User (local)
participant Editor as Cursor/VSCode
participant Ext as Deepnote Extension
participant Runtime as Local/Remote Python runtime
User->>Editor: open examples/* (contains .deepnote or YAML)
Editor->>Ext: parse .deepnote / YAML
Ext->>Editor: render blocks UI (run buttons, variables)
User->>Ext: run block or run all
Ext->>Runtime: execute code block(s)
Runtime-->>Ext: outputs / status
Ext->>Editor: display results (stdout, tables, charts)
Possibly related PRs
Suggested reviewers
Pre-merge checks✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{md,yml,yaml}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🪛 GitHub Actions: CIexamples/Getting started with Deepnote in VS Code/README.md[error] 1-1: Prettier formatting issues detected. Run 'prettier --write' to fix formatting issues. 🪛 markdownlint-cli2 (0.18.1)examples/Getting started with Deepnote in VS Code/README.md26-26: Emphasis used instead of a heading (MD036, no-emphasis-as-heading) 304-304: Emphasis used instead of a heading (MD036, no-emphasis-as-heading) Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #107 +/- ##
=======================================
Coverage 95.24% 95.24%
=======================================
Files 25 25
Lines 715 715
Branches 210 207 -3
=======================================
Hits 681 681
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: 5
📜 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 (3)
examples/Converting any jupyter notebook into .deepnote/README.md(1 hunks)examples/Getting started with Deepnote in Cursor/README.md(1 hunks)examples/Getting started with Deepnote in VS Code/README.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:
examples/Getting started with Deepnote in Cursor/README.mdexamples/Getting started with Deepnote in VS Code/README.mdexamples/Converting any jupyter notebook into .deepnote/README.md
🪛 GitHub Actions: CI
examples/Getting started with Deepnote in Cursor/README.md
[error] 85-85: cspell: Unknown word 'sqft'.
[error] 121-121: cspell: Unknown word 'pathlib'.
examples/Getting started with Deepnote in VS Code/README.md
[error] 208-208: cspell: Unknown word 'proba'.
[error] 214-214: cspell: Unknown word 'elif'.
🪛 markdownlint-cli2 (0.18.1)
examples/Getting started with Deepnote in Cursor/README.md
24-24: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
32-32: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
234-234: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
examples/Getting started with Deepnote in VS Code/README.md
27-27: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
35-35: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
383-383: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
examples/Converting any jupyter notebook into .deepnote/README.md
44-44: Fenced code blocks should be surrounded by blank lines
(MD031, blanks-around-fences)
54-54: Fenced code blocks should be surrounded by blank lines
(MD031, blanks-around-fences)
🔇 Additional comments (2)
examples/Getting started with Deepnote in Cursor/README.md (1)
85-85: cspell flagged 'sqft' and 'pathlib' as unknown—likely false positives.Both are valid: 'sqft' (domain term for square feet) and 'pathlib' (Python standard library). Consider adding to
.cspellrcor leaving as-is.Also applies to: 121-121
examples/Getting started with Deepnote in VS Code/README.md (1)
208-208: cspell flagged 'proba' and 'elif'—clear false positives.'proba' is the scikit-learn method
predict_proba()and 'elif' is a Python keyword. Safe to whitelist.Also applies to: 214-214
| ## Troubleshooting | ||
|
|
||
| - If `npx` is unavailable, install the CLI globally: | ||
| ```bash | ||
| npm i -g @deepnote/convert | ||
| deepnote-convert EDA.ipynb -o EDA.deepnote | ||
| ``` |
There was a problem hiding this comment.
Add blank lines around code fences per MD031.
Fenced code blocks need blank lines before opening fences. Apply this diff:
- If `npx` is unavailable, install the CLI globally:
+
```bash
npm i -g @deepnote/convert
deepnote-convert EDA.ipynb -o EDA.deepnoteOpen in VS Code with the Deepnote extension
- Install the extension
- From Marketplace: search for "Deepnote" and install
- Or via CLI:
-
```bash code --install-extension deepnote.vscode-deepnote # VS Code # cursor --install-extension deepnote.vscode-deepnote # Cursor (optional) # windsurf --install-extension deepnote.vscode-deepnote # Windsurf (optional) ```
Also applies to: 49-58
<details>
<summary>🧰 Tools</summary>
<details>
<summary>🪛 markdownlint-cli2 (0.18.1)</summary>
44-44: Fenced code blocks should be surrounded by blank lines
(MD031, blanks-around-fences)
</details>
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
In examples/Converting any jupyter notebook into .deepnote/README.md around
lines 41-47 (and also lines 49-58), the fenced code blocks lack a blank line
immediately before the opening ``` which violates MD031; add a single blank line
before each opening fence and ensure each fenced block has a matching closing
fence on its own line, adjusting surrounding paragraphs so there is exactly one
blank line between the preceding text and the code fence (apply the same fix to
the block at lines 49-58).
</details>
<!-- This is an auto-generated comment by CodeRabbit -->
| **Option A: From Extensions Marketplace** | ||
|
|
||
| 1. Open Cursor | ||
| 2. Click the Extensions icon in the sidebar (or press `Cmd/Ctrl + Shift + X`) | ||
| 3. Search for "Deepnote" | ||
| 4. Click **Install** on the Deepnote extension | ||
| 5. Wait for installation to complete |
There was a problem hiding this comment.
Replace bold section headers with Markdown headings per MD036.
Lines marked with ** as headers should use #### for consistency. Apply this diff:
### Step 1: Install the Deepnote Extension
Cursor supports VS Code extensions, making it easy to install Deepnote:
-**Option A: From Extensions Marketplace**
+#### Option A: From Extensions Marketplace
1. Open Cursor
2. Click the Extensions icon in the sidebar (or press `Cmd/Ctrl + Shift + X`)
3. Search for "Deepnote"
4. Click **Install** on the Deepnote extension
5. Wait for installation to complete
-**Option B: From Command Line**
+#### Option B: From Command Line
```bash
cursor --install-extension deepnote.vscode-deepnote-Option C: From VSIX File (if provided)
+#### Option C: From VSIX File (if provided)
- Open Command Palette (
Cmd/Ctrl + Shift + P) - Type "Extensions: Install from VSIX..."
Also applies to: 32-36, 38-42
<details>
<summary>🧰 Tools</summary>
<details>
<summary>🪛 markdownlint-cli2 (0.18.1)</summary>
24-24: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
</details>
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
In examples/Getting started with Deepnote in Cursor/README.md around lines 24 to
30 (and also apply the same change to lines 32-36 and 38-42), replace the bolded
header lines that currently use Option C: ... (and similar) with Markdown
heading level 4 (prepend "#### " to the header text) and ensure any adjacent
code snippets use proper fenced code block markers (bash and closing ) so
the install command is displayed correctly; update the three specified ranges
accordingly.
</details>
<!-- This is an auto-generated comment by CodeRabbit -->
|
|
||
| --- | ||
|
|
||
| **Happy coding with Deepnote in Cursor! 🚀** |
There was a problem hiding this comment.
🧹 Nitpick | 🔵 Trivial
Consider converting closing line to Markdown comment.
Line 234 uses bold text as a sign-off. This triggers MD036; consider moving outside the document body or converting to a comment block if not needed as content.
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
234-234: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
🤖 Prompt for AI Agents
In examples/Getting started with Deepnote in Cursor/README.md around line 234,
the bold sign-off "**Happy coding with Deepnote in Cursor! 🚀**" triggers MD036;
replace it with a non-rendered Markdown comment (e.g., <!-- Happy coding with
Deepnote in Cursor! 🚀 -->) or move it outside the document body (such as into a
footer file or metadata) so it no longer appears as bold content in the README.
| **Option A: From extensions marketplace** | ||
|
|
||
| 1. Open VS Code | ||
| 2. Click the Extensions icon in the sidebar (or press `Cmd/Ctrl + Shift + X`) | ||
| 3. Search for "Deepnote" | ||
| 4. Click **Install** on the Deepnote extension | ||
| 5. Wait for installation to complete |
There was a problem hiding this comment.
Replace bold section headers with Markdown headings per MD036.
Apply same pattern as File 2:
### Step 1: Install the Deepnote extension
-**Option A: From extensions marketplace**
+#### Option A: From extensions marketplace
1. Open VS Code
2. Click the Extensions icon in the sidebar (or press `Cmd/Ctrl + Shift + X`)
3. Search for "Deepnote"
4. Click **Install** on the Deepnote extension
5. Wait for installation to complete
-**Option B: From command line**
+#### Option B: From command line
```bash
code --install-extension deepnote.vscode-deepnote
Also applies to: 35-39
<details>
<summary>🧰 Tools</summary>
<details>
<summary>🪛 markdownlint-cli2 (0.18.1)</summary>
27-27: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
</details>
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
In examples/Getting started with Deepnote in VS Code/README.md around lines
27-33 (and also apply same change to lines 35-39), replace the bold section
header "Option A: From extensions marketplace" with a proper Markdown
heading (e.g., "## Option A: From extensions marketplace") and do the same for
the other bold headers to satisfy MD036; also convert the provided inline code
block examples to fenced code blocks using triple backticks for the bash command
shown and ensure consistent heading levels and spacing.
</details>
<!-- This is an auto-generated comment by CodeRabbit -->
|
|
||
| --- | ||
|
|
||
| **Build better data science workflows with Deepnote in VS Code! 🚀** |
There was a problem hiding this comment.
🧹 Nitpick | 🔵 Trivial
Consider converting closing line to Markdown comment.
Line 383 uses bold as a sign-off, triggering MD036. Same approach as File 2.
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
383-383: Emphasis used instead of a heading
(MD036, no-emphasis-as-heading)
🤖 Prompt for AI Agents
examples/Getting started with Deepnote in VS Code/README.md around line 383: the
bold closing line "**Build better data science workflows with Deepnote in VS
Code! 🚀**" triggers MD036; change it into a Markdown comment by replacing the
bolded text with an HTML comment (e.g. <!-- Build better data science workflows
with Deepnote in VS Code! 🚀 -->) so the content is preserved but no longer
rendered or flagged by the linter.
Removed keyboard shortcuts and troubleshooting sections from the README.
Updated instructions for opening the example project and removed troubleshooting section.
Summary by CodeRabbit