Repository navigation
docs(example): complete the examples overview - #113
jamesbhobbs merged 28 commits into
Conversation
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>
📝 WalkthroughWalkthroughAdds 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 mermaid 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 comments (2)
Comment |
There was a problem hiding this comment.
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.
⛔ Files ignored due to path filters (5)
assets/examples/getting_started_with_deepnote_in_vscode/integrations.pngis excluded by!**/*.pngassets/examples/getting_started_with_deepnote_in_vscode/integrations_rendered.pngis excluded by!**/*.pngassets/examples/getting_started_with_deepnote_in_vscode/manage_integration.pngis excluded by!**/*.pngassets/examples/getting_started_with_deepnote_in_vscode/markdown.pngis excluded by!**/*.pngassets/examples/getting_started_with_deepnote_in_vscode/selecting_block_types.pngis 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
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
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
The base branch was changed.
There was a problem hiding this comment.
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.
📒 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 - exampleexists in the codebase as a notebook name defined withinexamples/1_hello_world.deepnote. The documentation is correct.Likely an incorrect or invalid review comment.
There was a problem hiding this comment.
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 aSyntaxErrorwhen executed (lines 19-28). For a "getting started" example, this error case is confusing.Change to
type: markdownor 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 variableinput_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 variableinput_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 variableinput_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.
📒 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.
There was a problem hiding this comment.
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 betype: 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)notprint("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)notprint("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)notprint("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.
📒 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.
…nd-integrations-example
There was a problem hiding this comment.
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 + codebut should be1. 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.
📒 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
27f0d43 to
535e0bf
Compare
|
@coderabbitai you missed that I set the markdown block back to type code (which was due to me using an outdated extension version). |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 7285 @jamesbhobbs, you're right—I missed that. I can see in |
Signed-off-by: tomas <tomas@kislan.sk>
There was a problem hiding this comment.
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.
📒 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.
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)
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.deepnoteand3_integrations.deepnoteexist in examples/- All 5 referenced images exist in
assets/examples/getting_started_with_deepnote_in_vscode/- Markdown formatting complies with Prettier
Signed-off-by: tomas <tomas@kislan.sk>
Summary by CodeRabbit