Skip to content

docs(example): complete the examples overview - #113

Merged
jamesbhobbs merged 28 commits into
mainfrom
filipzitny/mar-355-how-to-different-blocks-and-integrations-example
Nov 4, 2025
Merged

jamesbhobbs merged 28 commits into
mainfrom
filipzitny/mar-355-how-to-different-blocks-and-integrations-example

Conversation

@Yggdrasill501

@Yggdrasill501 Yggdrasill501 commented Nov 4, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • Added example notebooks demonstrating text/code blocks, interactive input controls (text, textarea, select, slider, checkbox, date, date-range) with live outputs, and a notebook showcasing SQL integration with tabular/dataframe previews.
  • Documentation
    • Expanded README with a "What is possible" section and explicit navigation listing the included example notebooks.

Yggdrasill501 and others added 11 commits November 4, 2025 04:28
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@linear

linear Bot commented Nov 4, 2025

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Nov 4, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds two new Deepnote example notebooks and updates examples/README.md. examples/2_blocks.deepnote contains two notebooks: "1. Text blocks" (markdown and a code block printing "Hello World!") and "2. Input blocks" (text, textarea, select, slider, checkbox, date, date-range input blocks with associated code blocks and stdout outputs); both use block execution. examples/3_integrations.deepnote contains a notebook with a SQL integration: a SQL block that runs a query and returns execution metadata and a 100×17 dataframe (column metadata, stats, categories, HTML/text representation). README now includes a "What is possible in Deepnote?" section and an explicit list of example files.

Sequence Diagram(s)

mermaid
sequenceDiagram
participant User
participant UI as "Deepnote UI"
participant Notebook
participant Runtime as "Block Runtime"
Note over Notebook,UI: examples/2_blocks.deepnote — interactive input blocks
User->>UI: adjust input (text/slider/select/checkbox/date)
UI->>Notebook: update block variable metadata
Notebook->>Runtime: execute associated code block (executionMode: block)
Runtime-->>Notebook: stdout / outputs
Notebook-->>UI: render outputs
UI-->>User: display updated output

mermaid
sequenceDiagram
participant Notebook
participant Runtime as "SQL Block Runtime"
participant Integration as "SQL Integration Service"
Note over Notebook,Integration: examples/3_integrations.deepnote — SQL execution flow
Notebook->>Runtime: execute SQL block
Runtime->>Integration: send query
Integration-->>Runtime: return result set (dataframe + metadata + HTML)
Runtime-->>Notebook: execution metadata + outputs
Notebook->>Notebook: store dataframe preview and block state

Possibly related PRs

Suggested reviewers

  • jamesbhobbs
  • FilipPyrek

Pre-merge checks

✅ 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 directly reflects the main changes: adding and enhancing example files to complete the examples overview with new notebooks and updated documentation.

📜 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 7424b67 and 6e530bf.

📒 Files selected for processing (1)
  • examples/2_blocks.deepnote (1 hunks)
🔇 Additional comments (2)
examples/2_blocks.deepnote (2)

9-33: Text blocks notebook structure is correct.

Markdown and code blocks are properly typed and formatted. Outputs match expected execution results.


34-199: All past issues resolved.

Input blocks correctly print variable values. Outputs now reflect actual values rather than string literals. Grammar fix applied.


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

@Yggdrasill501 Yggdrasill501 self-assigned this Nov 4, 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: 3

📜 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 76bd779 and 21e923f.

⛔ Files ignored due to path filters (5)
  • assets/examples/getting_started_with_deepnote_in_vscode/integrations.png is excluded by !**/*.png
  • assets/examples/getting_started_with_deepnote_in_vscode/integrations_rendered.png is excluded by !**/*.png
  • assets/examples/getting_started_with_deepnote_in_vscode/manage_integration.png is excluded by !**/*.png
  • assets/examples/getting_started_with_deepnote_in_vscode/markdown.png is excluded by !**/*.png
  • assets/examples/getting_started_with_deepnote_in_vscode/selecting_block_types.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • examples/Getting started with Deepnote in VS Code/Readme.md (1 hunks)
  • examples/Getting started with Deepnote in VS Code/blocks.deepnote (1 hunks)
  • examples/Getting started with Deepnote in VS Code/integrations.deepnote (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 VS Code/Readme.md

Comment thread examples/3_integrations.deepnote Resolved
Yggdrasill501 and others added 5 commits November 4, 2025 07:42
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…filipzitny/mar-355-how-to-different-blocks-and-integrations-example
…filipzitny/mar-355-how-to-different-blocks-and-integrations-example
coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 4, 2025
@codecov

codecov Bot commented Nov 4, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.24%. Comparing base (bf7f638) to head (6e530bf).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #113   +/-   ##
=======================================
  Coverage   95.24%   95.24%           
=======================================
  Files          25       25           
  Lines         715      715           
  Branches      207      207           
=======================================
  Hits          681      681           
  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.

@Yggdrasill501
Yggdrasill501 marked this pull request as ready for review November 4, 2025 07:03
@Yggdrasill501
Yggdrasill501 requested a review from a team as a code owner November 4, 2025 07:03
Base automatically changed from filipzitny/mar-354-hello-world-and-example-guide to main November 4, 2025 11:19
@jamesbhobbs
jamesbhobbs dismissed coderabbitai[bot]’s stale review November 4, 2025 11:19

The base branch was changed.

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

📜 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 21e923f and 4cec6ab.

📒 Files selected for processing (3)
  • EXAMPLES.md (1 hunks)
  • examples/1_hello_world.ipynb (1 hunks)
  • examples/Getting started with Deepnote in VS Code/blocks.deepnote (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.md
🔇 Additional comments (1)
EXAMPLES.md (1)

38-38: No action needed—reference is valid.

The reference 1. Hello World - example exists in the codebase as a notebook name defined within examples/1_hello_world.deepnote. The documentation is correct.

Likely an incorrect or invalid review comment.

Comment thread examples/2_blocks.deepnote Resolved
@jamesbhobbs
jamesbhobbs marked this pull request as draft November 4, 2025 12:20

@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)
examples/Getting started with Deepnote in VS Code/blocks.deepnote (5)

10-28: Fix block type or remove error example.

Markdown content is typed as code (line 18), causing a SyntaxError when executed (lines 19-28). For a "getting started" example, this error case is confusing.

Change to type: markdown or remove the outputs block:

-          type: code
+          type: markdown
           outputs:
-            - ename: SyntaxError
-              evalue: invalid syntax (2823670256.py, line 8)
-              output_type: error
-              traceback:
-                - "\e[0;36m  Cell \e[0;32mIn[16], line 8\e[0;36m\e[0m"
-                - "\e[0;31m    This is a markdown paragraph.\e[0m"
-                - "\e[0m              ^\e[0m"
-                - "\e[0;31mSyntaxError\e[0m\e[0;31m:\e[0m invalid syntax"
-                - ''

81-81: Fix typo.

"biger and loger" → "bigger and longer"

-            deepnote_variable_value: I am biger and loger text that can be used for paragraphs.
+            deepnote_variable_value: I am bigger and longer text that can be used for paragraphs.

86-86: Print variable, not literal string.

Line 86 prints the string literal "input_textarea" instead of the variable input_textarea, inconsistent with line 65.

-          content: print("input_textarea")
+          content: print(input_textarea)

140-140: Print variable, not literal string.

Line 140 prints the string literal "input_slider" instead of the variable input_slider, inconsistent with line 116.

-          content: print("input_slider")
+          content: print(input_slider)

183-183: Print variable, not literal string.

Line 183 prints the string literal "input_date" instead of the variable input_date, inconsistent with line 161.

-          content: print("input_date")
+          content: print(input_date)
📜 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 4cec6ab and 3b9c120.

📒 Files selected for processing (1)
  • examples/Getting started with Deepnote in VS Code/blocks.deepnote (1 hunks)
🔇 Additional comments (5)
examples/Getting started with Deepnote in VS Code/blocks.deepnote (5)

29-40: LGTM!

Correctly demonstrates a code block with proper output.


54-74: LGTM!

Input text block and print statement correctly demonstrate variable usage.


96-125: LGTM!

Select input and print statement correctly demonstrate options and variable usage.


150-170: LGTM!

Checkbox input and print statement correctly demonstrate boolean variable usage.


193-215: LGTM!

Date range input and print statement correctly demonstrate list variable usage with datetime objects.

@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)
examples/Getting started with Deepnote in VS Code/blocks.deepnote (5)

10-18: Change block type to markdown.

Past review flagged this: markdown content is typed as code. Should be type: markdown.

-          type: code
+          type: markdown

56-65: Fix typo.

Past review flagged: "biger and loger" → "bigger and longer"

-            deepnote_variable_value: I am biger and loger text that can be used for paragraphs.
+            deepnote_variable_value: I am bigger and longer text that can be used for paragraphs.

66-76: Print variable, not string literal.

Past review flagged: should be print(input_textarea) not print("input_textarea").

-          content: print("input_textarea")
+          content: print(input_textarea)

120-130: Print variable, not string literal.

Past review flagged: should be print(input_slider) not print("input_slider").

-          content: print("input_slider")
+          content: print(input_slider)

163-173: Print variable, not string literal.

Past review flagged: should be print(input_date) not print("input_date").

-          content: print("input_date")
+          content: print(input_date)
📜 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 3b9c120 and a701e0e.

📒 Files selected for processing (1)
  • examples/Getting started with Deepnote in VS Code/blocks.deepnote (1 hunks)
🔇 Additional comments (1)
examples/Getting started with Deepnote in VS Code/blocks.deepnote (1)

19-30: LGTM!

Code block correctly demonstrates basic print functionality.

Comment thread examples/2_blocks.deepnote 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 (2)
examples/Getting started with Deepnote in VS Code/README.md (2)

7-12: Fix grammar and clarify step instructions.

Steps have grammatical errors and inconsistent phrasing that make them harder to follow:

  • Line 7: "To opening" → "To open"
  • Line 10, 11: "Than" → "Then"; sentence is also overloaded with multiple actions
  • Line 12: "And open by clicking" is awkward

Consider breaking line 10 into separate steps or simplifying the phrasing.

Apply this diff:

-To opening a `.deepnote` project, in VSCode you should:
+To open a `.deepnote` project in VSCode, you should:

 1. Open the folder where you cloned the repository. Or simply run `code .` in the terminal.
-2. Than install the [Deepnote extension for VS Code](https://marketplace.visualstudio.com/items?itemName=Deepnote.vscode-deepnote) by navigate to Extensions in the left sidebar and search for `Deepnote` or press `Cmd+Shift+X` on Mac or `Ctrl+Shift+X` on Windows and search for `Deepnote`, and click on `Install`.
-3. Than click on the Deepnote icon in the left sidebar, you will see a list of projects on the left sidebar.
-4. And open by clicking on the project, and opening your notebook.
+2. Then install the [Deepnote extension for VS Code](https://marketplace.visualstudio.com/items?itemName=Deepnote.vscode-deepnote) by navigating to Extensions in the left sidebar and searching for `Deepnote`, or press `Cmd+Shift+X` on Mac or `Ctrl+Shift+X` on Windows and search for `Deepnote`, then click `Install`.
+3. Then click the Deepnote icon in the left sidebar to see a list of projects.
+4. Open the project by clicking on it, then open your notebook.

18-30: Align notebook name and fix prose grammar and consistency.

Notebook reference and bullet descriptions need corrections:

  • Line 18: References 1. Text + code but should be 1. Text blocks (per blocks.deepnote)
  • Line 23: "type" → "types"; "example" → "examples"; awkward phrasing with colon
  • Lines 24–30: Repetitive "that are used for" patterns and other grammar issues (e.g., "if want" → "if you want", line 26; "if you want select" → "if you want to select", line 28; duplicate "the the", line 30)

Apply this diff:

-1. **Markdown blocks** are added via + Markdown in the top bar for example have look at notebook `1. Text + code` .
+1. **Markdown blocks** are added via + Markdown in the top bar; for example, see notebook `1. Text blocks`.

-   There are multiple type of input blocks, all the example are in `2. Input blocks` notebook, and here is how to use them :
+   There are multiple types of input blocks; all examples are in the `2. Input blocks` notebook. Here's how to use them:
-   - **Input Text** are short text inputs, that are used for short text fields.
+   - **Input Text** are short inputs for short text fields.
-   - **Input Textarea** are long text inputs, that are used for long text fields.
+   - **Input Textarea** are long inputs for long text fields.
-   - **Input Select** are select inputs, that are used for select fields, if want to add or change the options use the setting icon in the bottom of the block, this will open settings page.
+   - **Input Select** are select inputs for select fields; if you want to add or change options, use the settings icon at the bottom of the block.
-   - **Input Slider** are slider inputs, that are used for slider fields, if want to change the range use the min, max, or step in the bottom of the block.
+   - **Input Slider** are slider inputs for slider fields; if you want to change the range, use the min, max, or step values at the bottom of the block.
-   - **Input Checkbox** are checkbox inputs, that are used for checkbox fields, if you want select or deselect the checkbox, click on checked or unchecked in the bottom of the block.
+   - **Input Checkbox** are checkbox inputs for checkbox fields; if you want to select or deselect, click the checked or unchecked option at the bottom of the block.
-   - **Input Date** are date inputs, to change them click on the date in the bottom of the block.
+   - **Input Date** are date inputs; to change them, click the date at the bottom of the block.
-   - **Input Date Range** are date range inputs, to change the the range click on the start or end date in the bottom of the block.
+   - **Input Date Range** are date range inputs; to change the range, click the start or end date at the bottom of the block.
📜 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 08642c5 and 27f0d43.

📒 Files selected for processing (1)
  • 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 VS Code/README.md

@jamesbhobbs
jamesbhobbs force-pushed the filipzitny/mar-355-how-to-different-blocks-and-integrations-example branch from 27f0d43 to 535e0bf Compare November 4, 2025 17:42
coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 4, 2025
@jamesbhobbs

Copy link
Copy Markdown
Member

@coderabbitai you missed that I set the markdown block back to type code (which was due to me using an outdated extension version).

@coderabbitai

coderabbitai Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check the content of the Deepnote example files to understand block types
echo "=== Checking 2_blocks.deepnote ==="
cat examples/2_blocks.deepnote | jq '.blocks[] | {type: .type, language: .language}' 2>/dev/null || cat examples/2_blocks.deepnote | head -100

echo ""
echo "=== Checking 3_integrations.deepnote ==="
cat examples/3_integrations.deepnote | jq '.blocks[] | {type: .type, language: .language}' 2>/dev/null || cat examples/3_integrations.deepnote | head -100

Length of output: 7285


@jamesbhobbs, you're right—I missed that. I can see in examples/2_blocks.deepnote the block with markdown content (# This is a markdown heading...) is typed as code rather than markdown. Thanks for clarifying that was due to the outdated extension version requiring the workaround.

(\_(\ 
(o.o)  
/>📝 noted!

@jamesbhobbs jamesbhobbs changed the title docs(example): how to deepnote in vscode docs(example): complete the examples overview Nov 4, 2025
Signed-off-by: tomas <tomas@kislan.sk>

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

📜 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 226cdee and f3499e2.

📒 Files selected for processing (1)
  • examples/2_blocks.deepnote (1 hunks)
🔇 Additional comments (1)
examples/2_blocks.deepnote (1)

9-33: LGTM.

Notebook structure and outputs are consistent.

Comment thread examples/2_blocks.deepnote Resolved
Comment thread examples/2_blocks.deepnote Resolved
Comment thread examples/2_blocks.deepnote 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 f3499e2 and 7424b67.

📒 Files selected for processing (1)
  • examples/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/README.md
🔇 Additional comments (1)
examples/README.md (1)

50-92: All referenced files and assets exist. Prettier formatting passes.

Verification complete:

  • 2_blocks.deepnote and 3_integrations.deepnote exist in examples/
  • All 5 referenced images exist in assets/examples/getting_started_with_deepnote_in_vscode/
  • Markdown formatting complies with Prettier

Comment thread examples/README.md Resolved
Signed-off-by: tomas <tomas@kislan.sk>
@jamesbhobbs
jamesbhobbs marked this pull request as ready for review November 4, 2025 18:39
@jamesbhobbs
jamesbhobbs merged commit 1bdfba8 into main Nov 4, 2025
@jamesbhobbs
jamesbhobbs deleted the filipzitny/mar-355-how-to-different-blocks-and-integrations-example branch November 4, 2025 18:41
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