Your First Workflow
In this tutorial, you’ll create a new flow, add a Python node, run it, and view the output.
Step 1: Create a New Flow
Click the + button in the file explorer or use File → New Flow. Give it a name like my-first-workflow.
Step 2: Add a Python Node
Drag a Python node from the nodebar onto the canvas. Double-click it to open the editor and paste:
import numpy as np
data = np.random.randn(100)
mean = np.mean(data)
std = np.std(data)
print(f"Mean: {mean:.4f}")
print(f"Std: {std:.4f}")
display({"mean": float(mean), "std": float(std)})Step 3: Run the Node
Click the Run button on the node (or press Ctrl+Enter). You’ll see the output appear in real-time in the node’s output panel.
Step 4: Add a Second Node
Add another Python node and connect the first node’s output to the second node’s input:
# 'mean' and 'std' are automatically available from the previous node
result = f"The data has mean={mean:.4f} and std={std:.4f}"
print(result)Step 5: Run the Full Workflow
Click Run All in the toolbar to execute the entire pipeline. Watch as each node executes in order and passes data to the next.
Congratulations! You’ve built your first workflow. Next, try the Working with Data Types tutorial.
Last updated on