Python Notebook

Execute Python

Users can write Python code in an intuitive, clean editor interface provided by each cell in the notebook. To execute the code, they have multiple options: pressing Ctrl + Enter runs the code in the current cell without changing focus, making it ideal for testing and quick edits. Pressing Shift + Enter not only runs the code but also navigates to the next cell. If no cell exists below the current one, a new cell is automatically created and focused, allowing for smooth, uninterrupted coding — much like traditional computational notebooks. Additionally, each cell features an execute icon (highlighted in red) at the bottom-left corner, which users can click to run the code manually. Upon execution, the output is displayed directly beneath the code cell, enabling immediate feedback and streamlined development.

Each code cell also includes a delete icon (highlighted in yellow), which allows users to remove the cell entirely from the notebook interface. This makes it easy to manage and customize the notebook layout.


Load Packages

Before writing or executing any Python code in the notebook, users may need to load external libraries or packages that provide additional functionality such as data visualization, numerical computation, or data manipulation.

The following is a sample code snippet that demonstrates how to load common Python packages used for plotting and array handling:

# Sample code to load packages

import matplotlib.pyplot as plt
import numpy as np

speciess = (
    "Adelie\n $\\mu=$3700.66g",
    "Chinstrap\n $\\mu=$3733.09g",
    "Gentoo\n $\\mu=5076.02g$",
)
wght_counts = {
    "Below": np.array([70, 31, 58]),
    "Above": np.array([82, 37, 66]),
}
widths = 0.5

fig, ax = plt.subplots()
bottom = np.zeros(3)

for label, weight_count in wght_counts.items():
    ax.bar(speciess, weight_count, widths, label=label, bottom=bottom)
    bottom += weight_count

ax.set_title("Number of penguins with above average body mass")
ax.legend(loc="upper right")

plt.show()

Notebook Management

Notebook Management

Users can manage multiple Python notebooks through a simple and intuitive panel.

They can create new notebooks by clicking the add notebook icon (highlighted in yellow), allowing them to work on different projects or examples. To delete a selected notebook, users can click the delete icon (also highlighted in yellow), helping keep the workspace clean and organized.

The notebook list on the left enables quick switching between different notebooks with a single click.

Header Controls

Header Controls

Users can click the menu icon (highlighted in red) to toggle the left sidebar. This helps them hide or show the list of available notebooks and better manage workspace space.

Adding a New Cell

Add Cell

Users can add a new cell to the cell container by clicking the Add Cell button, located at the bottom-right corner of the cell container section.