Skip to content

Getting Started

To open a new notebook click the “Create a new DBCode Notebook” icon that appears in the DBCode Explorer, when you hover over a database.

Create a new notebook

To add a cell, click the “Add code cell” button at the top.

Add code cell

You can also add a cell from the “More Actions…” button in the cell toolbar.

Add from More Actions

Additionally, you can hover with your mouse at the top or bottom of a cell and choose whether to insert a cell above or below.

Add button on hover

To execute a specific cell, click the “Execute cell” button to the left of the code cell you wish to run.

Execute cell

If you have more than one code cell and would like to execute them all, click the “Run All” button at the top.

Run all cells

To execute the cells above the current one, click the “Execute Above Cells” button in the cell toolbar.

Run above cells

To execute the selected cell and all cells below it, click the “Execute Cell and Below” button in the cell toolbar.

Run cell and below

Each cell execution creates a new result tab by default, allowing you to compare results. The dbcode.notebook.maxTabs setting controls how many tabs are kept per cell output.

When using single-tab mode (dbcode.notebook.maxTabs set to 1), re-executing a cell will refresh the existing result tab instead of creating a new one. This preserves any chart configuration you’ve created.

Note: Unlike the SQL Editor, the Shift key modifier for toggling refresh-in-place is not available in notebooks since Shift+Enter is used to run cells. Use single-tab mode if you always want to refresh in place.

If you would like to join a cell with the cell above or below it, find these options by clicking the “More Actions…” button in the cell toolbar. This helps in organizing and managing your code more efficiently.

Join cells

This combines the current cell with the one above.

This combines the current cell with the one below.

  • Start Simple: Begin with basic SQL queries to get familiar with the interface
  • Use Markdown: Add markdown cells to document your analysis and findings
  • Experiment: Notebooks are perfect for iterative data exploration
  • Save Frequently: Remember to save your work as you progress
  • Organize: Use descriptive cell names and organize your analysis logically

Once you’re comfortable with the basics, explore: