Build a Python Notebook Manually
Last updated
Last updated
If you opt for the 'Build Manually' method, follow these steps:
When the "Build Manually" option is selected, you will be directed to the main Python notebook editor. A default Python code block is automatically created, where you can begin writing and executing Python code to generate outputs.
As you navigate through the notebook, you can easily add more content using the following options located in the each code block:
+ Python: Inserts a new Python code block.
+ Text: Adds a text block to include notes or explanations.
+ SQL: Allows you to insert SQL code blocks to query data directly within the notebook.
All changes are saved automatically to ensure no progress is lost during your work.
On the left side of the notebook interface, the Data Sources panel is available to import databases or files. You can:
+ Add Database: Connect to an external database.
+ Add File: Upload files from your system. These are the accepted extensions: .csv, .xlsx, .json, .parquet
Upon clicking either option, a data source panel will open, following the same process used in Step 1 of Creating Your First Connection.
From the data source panel, you can select a database or file from your previously connected sources. If connecting to a database, select the appropriate table from the dropdown menu.
Once your database or file is selected, click the "Import to Notebook" button. This will automatically create a new Python code block on the right side of the editor, populated with the relevant code to load and work with your selected data.
Each code block provides options to:
Run the query
Modify variable names
Use AI Copilot for suggestions (pencil icon)
Hide the Code, move up/down, or delete the step
At the top of the notebook, you'll find CTAs:
Publish or Share using the vertical ellipsis menu
Run all code blocks
Save the notebook (all changes are saved automatically)
Notebook tab (default view)
Storybook tab: Displays the notebook's analysis in narrative form