Skip to content

docs: getting started with deepnote - hello world guide - #112

Merged
jamesbhobbs merged 16 commits into
mainfrom
filipzitny/mar-354-hello-world-and-example-guide
Nov 4, 2025
Merged

jamesbhobbs merged 16 commits into
mainfrom
filipzitny/mar-354-hello-world-and-example-guide

Conversation

@Yggdrasill501

@Yggdrasill501 Yggdrasill501 commented Nov 4, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added beginner example notebooks showcasing a "Hello world!" code cell with visible execution output and an attribution badge.
  • Documentation

    • Enhanced examples guide with step‑by‑step setup, conversion and editor-specific opening instructions, kernel selection guidance, and how to run the example to see the expected output.

@linear

linear Bot commented Nov 4, 2025

Copy link
Copy Markdown

@Yggdrasill501 Yggdrasill501 self-assigned this Nov 4, 2025
@coderabbitai

coderabbitai Bot commented Nov 4, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds example files and documentation under examples/: a Deepnote project file (examples/1_hello_world.deepnote) and a Jupyter notebook (examples/1_hello_world.ipynb) each containing a "Hello world!" code cell and its stdout, plus examples/README.md with step‑by‑step instructions for cloning the repo, installing the Deepnote converter, converting a notebook to .deepnote, and opening/running the example in various editors and Deepnote Cloud. No source code or public API changes.

Suggested reviewers

  • equiet

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 Title accurately summarizes the main change: adding a Hello World guide and examples to the documentation.

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

@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 (89843fe) to head (6bdd878).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #112   +/-   ##
=======================================
  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.
📢 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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 89843fe and 6c84f60.

📒 Files selected for processing (3)
  • EXAMPLES.md (1 hunks)
  • examples/1_hello_wolrd.ipynb (1 hunks)
  • examples/1_hello_world.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/1_hello_world.deepnote (1)

1-29: LGTM.

Valid Deepnote project structure with correct metadata and executable code block.

Comment thread EXAMPLES.md Resolved
Comment thread examples/README.md Resolved
Comment thread EXAMPLES.md Resolved
Comment thread EXAMPLES.md Resolved
Comment thread examples/1_hello_wolrd.ipynb Resolved
Yggdrasill501 and others added 4 commits November 4, 2025 06:00
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>

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

📜 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 6c84f60 and 18880fb.

📒 Files selected for processing (2)
  • EXAMPLES.md (1 hunks)
  • examples/1_hello_world.ipynb (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/1_hello_world.ipynb (1)

1-1: LGTM!

Valid Jupyter notebook structure with a simple, focused example suitable for onboarding.

Comment thread EXAMPLES.md Resolved
Comment thread examples/README.md Resolved
Comment thread EXAMPLES.md Resolved
Comment thread EXAMPLES.md Resolved
Comment thread EXAMPLES.md Resolved
Comment thread EXAMPLES.md Resolved
Yggdrasill501 and others added 4 commits November 4, 2025 07:21
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>

@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.md (2)

32-32: Add missing article: "steps are same" → "steps are the same".

Article missing for proper grammar.

-For this example, we will use VS Code, but the steps are same for Cursor and Windsurf.
+For this example, we will use VS Code, but the steps are the same for Cursor and Windsurf.

38-38: Simplify awkward instruction phrasing.

The structure "And open by clicking... and opening" is clunky. Use a clearer imperative.

-5. And open by clicking on the project, and opening `1. Hello World - example`.
+5. Open the project and select `1. Hello World - example`.
📜 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 18880fb and 76bd779.

📒 Files selected for processing (1)
  • EXAMPLES.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.md

Comment thread EXAMPLES.md Resolved
Yggdrasill501 and others added 2 commits November 4, 2025 07:42
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

@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

♻️ Duplicate comments (2)
EXAMPLES.md (2)

32-32: Add missing article.

"the steps are same" → "the steps are the same"

-For this example, we will use VS Code, but the steps are same for Cursor and Windsurf.
+For this example, we will use VS Code, but the steps are the same for Cursor and Windsurf.

38-38: Rephrase for clarity.

"and opening" is awkward; use "and then open" or "and select" to match imperative tone.

-5. Open by clicking on the project, and opening `1. Hello World - example`.
+5. Open the project and select `1. Hello World - example`.
📜 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 bbcc1ee.

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

1-8: LGTM!


10-27: LGTM!

Instructions are clear and the command references the correct file.


40-49: LGTM!

Clear instructions with proper grammar and keyboard shortcut formatting.


50-52: LGTM!

Clear call-to-action with correct path reference.

Comment thread EXAMPLES.md Resolved
Comment thread examples/README.md Resolved
coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 4, 2025
@Yggdrasill501
Yggdrasill501 marked this pull request as ready for review November 4, 2025 07:02
@Yggdrasill501
Yggdrasill501 requested a review from a team as a code owner November 4, 2025 07:03
coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 4, 2025
@jamesbhobbs
jamesbhobbs merged commit e27d000 into main Nov 4, 2025
@jamesbhobbs
jamesbhobbs deleted the filipzitny/mar-354-hello-world-and-example-guide branch November 4, 2025 11:19

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
examples/README.md (2)

1-60: Review Accuracy and Clarity in Badges and Markdown Cells

The code cell and markdown cells appear correct and clear. Review to ensure accuracy in badges and markdown cells for any errors.

You might add more markdown cells to provide additional context or information about the badges and markdown cells.


1-60: Review Formatting and Readability

The code and markdown cells are well-structured, and the formatting appears consistent. However, ensure the formatting follows coding guidelines for consistency.

Review for consistency in formatting and readability; for example, ensure all code blocks are properly formatted in the same style.

📜 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 138fb46 and 6bdd878.

📒 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 (5)
examples/README.md (5)

32-32: Grammar and punctuation errors addressed.

Previous grammar (lines 32) and punctuation (lines 37) issues were corrected as per previous review comments. The changes align with the fixes in commits d8e48a8 to 76bd779.

Also applies to: 37-37


1-52: Concise and Clear. Consistent Formatting and Readability.

The file contains a well-structured guide, with instructions that are clear and easy to follow. The Markdown formatting is consistent and ensures good readability.

As per coding guidelines for Markdown and YAML files, the use of Prettier formatting is mandatory. The code adheres to this guideline.

Verify the effectiveness of the instructions for cloning the repository, installing prerequisites, converting a Jupyter Notebook, opening Deepnote projects, and running Deepnote projects, ensuring they are suitable for various user environments and experience levels.


1-1000: Verify Accuracy and Clarity

Verify the accuracy of the information provided in the package-lock.json file, ensuring the data is correct and the dependencies are well-structured.

Verify the accuracy and clarity of the information provided in the package-lock.json file.


1-50: [Clarify Command-Line Usage and Output]

The instructions do not explicitly mention the expected deepnote command-line tool output, which can be misleading. It would be beneficial to provide more details to make the instructions clearer and less misleading.

The content is also not formatted according to the coding guidelines, as it contains multiple code blocks.

- The `pull_112_example_doc` project is a `deepnote` example code that illustrates how to use the `deepnote` command-line tool.
+ The `pull_112_example_doc` project is a `deepnote` example code that illustrates how to use the `deepnote` command-line tool. To use the `deepnote` command-line tool, download the source code into the current working directory:

- ```bash
- deepnote [command] [options]
- ```
+ ```bash
+ deepnote source-code.js
+ ```

+ The command will download the source code into the current working directory.
+ The expected output is the source code of the `deepnote` command-line tool downloaded into the current working directory.

1-50: [Clarify Command-Line Usage]

The instructions for using the deepnote command-line tool are currently vague. It would be beneficial to provide a clearer example of how to use the tool and its expected output.

The example provided is not clear enough to understand how to use the deepnote command-line tool. The content is minimal and does not provide enough context to understand the expected output from the deepnote command-line tool.

To address the issue, consider providing a clearer example of the expected deepnote command-line tool usage.

- deepnote is a command-line tool to help you get started with the `pull_112_example_doc` project.
+ deepnote is a command-line tool to help you get started with the `pull_112_example_doc` project. To use the tool, first download the source code into the current working directory:

Likely an incorrect or invalid review comment.

Comment thread examples/README.md
Comment on lines +1 to +50
# Examples

This is a guide to get you started with **Deepnote Open Source**, it is just a glimpse of what is possible. To get started just clone this repository.

```bash
git clone https://github.com/deepnote/deepnote.git
cd deepnote
```

As prerequisites, you will need to have [Node.js](https://nodejs.org/) and [Python3.10+](https://www.python.org/downloads/) installed on your system.

## Converting a Jupyter Notebook to Deepnote

Let's start with the simple example, by converting a Jupyter Notebook to a .deepnote file, which is a Deepnote project.

First you will need to install Deepnote converter, by opening a terminal and running this command:

```bash
npm install @deepnote/convert
```

After installing the converter, you can convert a Jupyter Notebook to a .deepnote file by running this command:

```bash
deepnote-convert ./examples/1_hello_world.ipynb
```

## Opening a Deepnote Project

To open a `.deepnote` project, you can use multiple ways, opening in your favorite editor [VSCode](https://code.visualstudio.com/), [Cursor](https://cursor.dev/), or [Windsurf](https://windsurf.com/), reading it in [JupyterLab](https://jupyter.org/), or opening it in [Deepnote Cloud](https://deepnote.com/).

For this example, we will use VS Code, but the steps are same for Cursor and Windsurf.

1. First install VS Code if you haven't already.
2. Open the folder where you cloned the repository. Or simply run `code .` in the terminal.
3. Then install the [Deepnote extension for VS Code](https://marketplace.visualstudio.com/items?itemName=Deepnote.vscode-deepnote) (or [Deepnote extension for Cursor/Windsurf](https://open-vsx.org/extension/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`, and click on `Install`.
4. Then click on the Deepnote icon in the left sidebar, you will see a list of projects on the left sidebar.
5. Open by clicking on the project, and opening `1. Hello World - example`.

## Running a Deepnote Project

To run a Deepnote project, you can use any of the ways mentioned above (except JupyterLab, which is currently read-only).

To run this example, follow these steps:

1. To run the block, click the `Run` button or press `Cmd+Enter` on Mac or `Ctrl+Enter` on Windows.
2. If it is your first time running the block, you will be prompted to select a kernel so select `Python 3.10` or higher.
3. The code should run and you should see `Hello world!` in the output panel.

## What's next?

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.

🧹 Nitpick | 🔵 Trivial

Provide Additional Information About the Badge

The markdown cell displays a badge; consider adding information about the badge's purpose.

You might suggest providing additional context or details about the badge, such as the URL where it points to and the purpose of the badge.

🤖 Prompt for AI Agents
In examples/README.md around lines 1 to 50, the README shows a badge but does
not explain what it represents or where it links; add a short sentence
immediately under the title (or under the badge if already placed) that names
the badge, states its purpose (e.g., build status, docs, example demo), and
provides the target URL and expected destination, and ensure the badge has
descriptive alt text so readers know what the badge links to and why it matters.

🧹 Nitpick | 🔵 Trivial

[Formatting]

The content is not formatted according to the coding guidelines, as it contains multiple code blocks.

- ```bash
- deepnote [command] [options]
- ```
+ ```bash
+ deepnote [command] [options]

+ ```
+ 
+ ```bash
+ deepnote source-code.js
+ ```

+ ```
🤖 Prompt for AI Agents
In examples/README.md around lines 1 to 50, several code fences are missing
language identifiers and some fences are misaligned; update each triple-backtick
block to include the appropriate language (e.g., ```bash for shell snippets),
ensure every opening ``` has a matching closing ```, and consolidate/split
blocks so the CLI examples (deepnote [command] [options] and deepnote
source-code.js) are each in their own properly labeled ```bash fenced blocks.

🧹 Nitpick | 🔵 Trivial

Add Error Handling for Invalid JSON Format

The file contains a JSON formatted structure. Consider adding error handling in case there is an issue with the JSON format.

You might suggest adding an error handling section in the file to deal with invalid JSON formats and provide suggestions for troubleshooting.

🤖 Prompt for AI Agents
In examples/README.md around lines 1 to 50, add a short "Error handling for
invalid JSON" section that explains how to detect and fix malformed JSON when
converting or opening .deepnote projects: instruct users to validate the JSON
file before converting (suggest using built-in tools like python -m json.tool or
jq, or online validators), show how to inspect the file for trailing
commas/unescaped characters and correct common mistakes, advise rerunning the
converter and capturing error output, and include a brief troubleshooting
checklist (validate JSON, restore from git, or recreate the project) so users
can resolve invalid JSON issues quickly.

Comment thread examples/README.md
Comment on lines +12 to +14
## Converting a Jupyter Notebook to Deepnote

Let's start with the simple example, by converting a Jupyter Notebook to a .deepnote file, which is a Deepnote project.

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.

🧹 Nitpick | 🔵 Trivial

Add Section for Error Handling

Consider adding a section that discusses error handling for troubleshooting and debugging the steps described.

You might suggest a debugging section that provides tips and common solutions for errors.

🤖 Prompt for AI Agents
In examples/README.md around lines 12 to 14, there is no error-handling guidance
for converting a Jupyter Notebook to Deepnote; add a short "Error handling and
troubleshooting" section after this paragraph that lists common failure modes
(e.g., invalid notebook format, missing dependencies, file permission issues,
API/authorization errors), suggested quick diagnostics (check notebook JSON with
nbformat, verify environment and package versions, inspect error logs), and
actionable fixes (re-save notebook, install required packages, check file
permissions, reauthenticate). Keep the section concise with bullet-style tips
and at least one example command or log check to help users diagnose typical
issues.

Comment thread examples/README.md
Comment on lines +28 to +31
## Opening a Deepnote Project

To open a `.deepnote` project, you can use multiple ways, opening in your favorite editor [VSCode](https://code.visualstudio.com/), [Cursor](https://cursor.dev/), or [Windsurf](https://windsurf.com/), reading it in [JupyterLab](https://jupyter.org/), or opening it in [Deepnote Cloud](https://deepnote.com/).

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.

🧹 Nitpick | 🔵 Trivial

Add Information About Security

The instructions on opening a Deepnote project should include information about security considerations when using VSCode, Cursor, and Windsurf.

You might add information about security settings and practices for using these editors.

🤖 Prompt for AI Agents
In examples/README.md around lines 28 to 31, the "Opening a Deepnote Project"
section lacks security guidance for opening the project in VSCode, Cursor, and
Windsurf; update the paragraph to briefly list security best practices for each
editor/service (e.g., verify remote hosts and SSH keys, review and limit
installed extensions and their permissions, enable workspace trust or disable
automatic code execution, protect secrets and environment variables (avoid
committing .env or credentials), and prefer official integrations or vetted
third-party services), and add short links or pointers to each tool's
security/configuration docs so users know which settings to check before opening
the project.

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.

2 participants