The Notebook feature provides an interactive Python environment embedded within each report. Use it to explore parameters, inspect query results, visualize data, and push outputs back into your final report—no local Python setup required.
Notebooks consist of cells (code + output blocks):
On load, the Notebook initializes a Pyodide environment and injects data from your report:
ParamsObject: Access and pretty‑print your report’s parameters:
If You edit parameters in the Parameters tab, click on Run Queries
to see changes reflected in both params and dataset content.
DataFrameContainer: Wraps your query results as pandas DataFrames, complete with row/column counts:
These helpers render as HTML tables and images directly in the notebook.
Your report’s queries run before the notebook loads and are passed in via the datasets
variable. Example:
Use print_df
to display a DataFrame in the notebook. You can also use df.head()
to show the first few rows of any DataFrame.
Toggle Add to Report Builder on any cell to include that cell’s final output (HTML table or image) in your report when saving. This lets you mix narrative text with live data insights.
prind_df
: Will output the pandas dataframe in a html table.run_query(query, db_connection_name)
: Will run a query and return the results as a pandas dataframe.Available Python Packages: Pyodide Comes by default with a set of packages, including:
pandas
numpy
matplotlib
scikit-learn
statsmodels
plotly
Check all available packages in the Pyodide documentation.
seasborn
) are not available by default. You can install them using micropip
in your notebook. For example, to install seaborn
, run:import micropip
await micropip.install(['seaborn'])
plt.show()
hook.Start experimenting with live Python in your reports today—your data, your code, your insights, all in one place!