Fastero notebooks are Jupyter notebooks with Python, SQL and Markdown cells that run on Fastero's machines. Owners, Admins and Editors of a project can create notebooks in it. To run or schedule one, your organization role must also be Editor or above.
Create a notebook
- Open Workbench from the top bar.
- Click the + button (Add new) above the tabs and choose New notebook, or choose Create New in the ⋮ menu next to Notebooks in the Explorer.
- Press Ctrl+S or click Save. In Save Notebook, enter a Notebook Name and click Save.
After the first save, the notebook saves itself a moment after each change. To bring in a file, choose Upload .ipynb in the ⋮ menu next to Notebooks. To take one out, choose Download as Jupyter file (.ipynb) in the notebook's More menu (⋮).
Add cells and run them
- Add cells with + Python, + SQL and + Markdown in the top bar.
- Shift+Enter runs a cell and goes to the next. Run all runs every cell from the top, and the Stop button ends the cell that is running.
- Every notebook in the workspace shares one Python. Cells read your organization's and project's secrets as environment variables.
Query a database from a SQL cell
- Click + SQL.
- Pick a connection in Database.
- In Variable Name, type a name for the result. Left empty, it is
result. - Write the query and run the cell.
As you type, the cell suggests the connection's schemas, tables and columns, in its SQL dialect. Fastero reads the names when you first click into the cell, not when the notebook opens.
The rows become a pandas DataFrame with that name, which the cells below can use:
SELECT region, SUM(amount) AS revenue
FROM sales
GROUP BY regionresult.sort_values("revenue", ascending=False).head()Schedule a notebook
- Save the notebook. Personal notebooks can't be scheduled.
- Click Auto run in the top bar.
- Choose Schedule (cron)….
- Pick one of the Quick Presets or More presets, or type a Cron Expression (minute hour day month weekday). Times are in UTC.
- Click Save.
A schedule runs every cell from top to bottom. To pause one, open its ⋮ menu under Triggers in the Explorer and choose Switch off.
You can also ask Claude to schedule the notebook. Claude's schedule takes a timezone, runs at most once an hour, and can email a good run's last output to up to 20 members of your organization. A failed run is reported by email and in the app.
Turn a notebook into an app
- Promote to App publishes the saved notebook as an app in the project. The button then reads Open in Apps, which opens the app in a new tab.
- View as App shows the app beside the editor.
- To leave a cell out of the app, select it and click Hide in app view on its toolbar.
Pin a cell to a dashboard
- Run the cell. You can pin a SQL cell's rows, or a Python cell whose last output is a table (a pandas DataFrame) or an Altair chart.
- Click Pin to Dashboard above the output.
- In Add Widget to Dashboard, enter a Widget Name and pick the Dashboard. For rows, choose Chart or Table.
- Click Add to Dashboard.
The widget shows the rows from the notebook's latest run, so a schedule keeps it current.
Version history
Choose Version history in the More menu. Each save keeps a version, and saves close together go into one. A notebook keeps its newest 100 versions, with each cell's code and text but not its outputs.
To go back, click a version, click Restore, then Restore again to confirm. The current cells are kept as a version first, so you can undo it.
When Python stops
- Python stops after 10 minutes without use. Variables are lost; code and outputs stay. The next cell you run starts it again.
- Without a paid plan, the notebook server can run 6 hours a day in total, counted per UTC day.
- The Machine menu at the top of a notebook picks a bigger machine on a paid plan.