Data apps
Describe a dashboard or data tool, and Deepnote Agent builds it as a web app backed by a notebook.
A data app is a web app you build by chatting with Deepnote Agent. Describe what you need, such as a sales dashboard, a data explorer, or an interactive tool, and the agent builds the app and connects it to a notebook that queries and prepares the data. Refine it in chat and share it with your team.
Each data app lives in its own project, so you'll also see it called a data app project.
For a Python app, see Streamlit app projects. To put a chart or table in another tool, embed the block. Not sure which one fits? Choosing how to build an app compares them.
Creating a data app
- Click Create new in your workspace and choose New data app.
- Describe the app you want, or pick one of the suggested prompts.
- The agent looks for data in your connected integrations and project files and builds a first version. If nothing fits, it uses clearly labeled sample data and offers to connect real data.
After your first prompt, the app opens next to the chat. Keep asking for changes, such as a new chart, another filter, or a different layout, and the agent updates the app.
How a data app works
A data app has two parts:
- The page: an HTML page with its own styles and scripts, stored in
_deepnote_static/index.html. Filtering, sorting, and charts run in the page. - The notebook: runs the SQL and Python behind the app and returns the data the page needs. Queries, credentials, and heavy computation stay in the notebook, never in the page.
To see the notebook, click Show notebook in the top bar. Click Show app to go back.
Data and refreshes
Runs are per person. Once someone has run the app, opening or reloading it shows the results of their own latest run rather than running anything again. To get fresh numbers they submit the app's inputs, or use its rerun control if it has one, and the whole notebook runs again for them.
Until someone has run the app themselves, what they see depends on Let everyone with access see results without running the app, under General in the project's Settings sidebar:
- On: they see the results of the latest run by an editor or admin, a scheduled run included.
- Off: the app shows no data apart from stored DataFrames, and asks them to run it.
The setting is always on while the app is scheduled or public, unless Private outputs is on, which always turns it off.
Running blocks in the editor doesn't change what the app shows, except for stored DataFrames.
Scheduling
To keep the app's data fresh, schedule its notebook. Click Schedule notebook next to Run at the top of the notebook, or Scheduled Runs under Triggers in the project's Settings sidebar. See Scheduling for the options. Scheduling turns on Let everyone with access see results without running the app, so everyone with access who hasn't run the app sees the latest scheduled results.
Inputs
The app's controls use the notebook's input blocks. When someone changes a control and submits, the notebook runs with their values.
Stored DataFrames
For a table too large to load on every run, ask the agent to store it in the project as a DataFrame. The app then pages through the stored DataFrame without running the notebook, so it loads even for people who haven't run the app.
Every viewer, including visitors of a public app, sees the same stored DataFrame, whatever inputs they choose. It changes when the block that stores it runs, in the editor or in a scheduled run, not when viewers reload the app or submit inputs. Stored DataFrames aren't available when Private outputs is on.
AI summaries
The app can show text written by an agent block in the notebook, such as a summary of the latest numbers. Ask the agent to add one. The summary is written on each run, so it matches the data the viewer sees.
Using data from another app
A data app can show another app's data by connecting to that app's notebook instead of copying its queries. Ask the agent to use the other app's data. People who open your app need at least View access to the other app's project.
Fixing errors
After each change, the agent reloads the app, checks it for errors, and fixes them on its own. If an error is still there after two tries, it tells you what's still failing.
If the app hits an error while you're using it, a message appears above the app. Click Fix to let the agent fix it.
Changing the look
New apps use a calm, Deepnote-like theme with light and dark modes. Ask the agent for another look, such as your brand's colors and fonts.
Examples
Three data apps built on public data are in the Deepnote repository, under examples/data-apps. Each folder is one project: a notebook that downloads and prepares the data, and the page that shows it.
-
Global ship traffic turns six years of AIS position reports into a 3D globe and a flat map of the world's shipping lanes, down to the busiest straits and canals.

-
The Night Shift shows a season of nightly bird migration over Europe, measured by weather radars, beside the wind that shapes it.

-
The coastline paradox walks a ruler along nine Greek islands, from tens of kilometers down to tens of meters, and plots each coastline growing as the ruler shrinks.

None of them need an API key, and each notebook caches its downloads in the project, so only the first run is slow. Their pages are written by hand rather than by the agent, which is how to take an app past what chat gives you: the page is yours, and the notebook still does the querying and the heavy work behind it.
For apps built on a company's own data, see examples/lindquett-software, five tools one fictional SaaS company runs on Deepnote.
Publishing and sharing
A new data app is unpublished, so only editors of the project can open it. To let others use it:
- Click Share in the top bar and set the app to Published.
- Invite people, groups, or your workspace, and choose their access:
- App user: can open and use the published app, but can't see the notebook or the app's code. New collaborators get this access by default.
- View: can also open the project and see the notebook and the app's code, without changing them.
- Edit: can change the app and the notebook, use the agent, and publish or unpublish the app.
- Click Copy link to app and send the link.
To make the app editor-only again, set it to Unpublished.
Published apps open only when Allow static file sharing in projects is on in Settings & members → Project settings.
To publish from code, upload a local build with deepnote publish, or call
PATCH /v2/projects/{projectId} with { "dataApp": { "published": true } } through the
Deepnote API. Send false to unpublish.
Sharing an app publicly
A published app can be made public, so anyone with its link can open it, including people without a Deepnote account. Public apps are available on the Team and Enterprise plans, and only a project admin can make an app public.
Public access can be turned on only here, in the app's Share dialog. The CLI and the API can publish an app to the people with project access, but can't open it to anyone with the link: making an app public is a deliberate step someone takes in Deepnote, not something a script or a pipeline can do.
- Click Share in the top bar.
- Under Anyone with a link to this app, choose the access:
- View: visitors see the latest saved results from runs by the app's editors and admins. Results from their later runs become public too.
- Execute: visitors can also run the app with their own inputs and see their own results.
- Click Copy link to app and send the link.
Visitors can't open the project or the notebook. Before you make an app public, keep in mind:
- Check the app for sensitive information. Anyone can forward the link or keep a copy of what they see.
- Visitor runs use your workspace's machines and integrations. They can read the project's files but can't change them.
- All visitors of an app share one limit on runs. A busy app asks them to try again in a few minutes.
- Making the app public turns on Let everyone with access see results without running the app, so everyone with access to the project sees the same results until they run the app.
- When Private outputs is on, visitors see only the results of their own runs, so an app with View access shows them no results.
- An app in a project with Deepnote identity can't be made public.
To make the app private again, choose Disabled. The app also stops being public when you unpublish it.
Public apps open only when Allow apps to be shared publicly and Allow static file sharing in projects are on in Settings & members → Project settings. Turning off Allow apps to be shared publicly removes public access from every app in the workspace and keeps the apps published for collaborators.
Embedding a public app
The link of a public app also works in an iframe on another site:
<iframe
src="https://deepnote.com/apps/your-app"
width="100%"
height="600"
></iframe>
Use the link from Copy link to app as the src. An embedded app shows a compact Deepnote top bar, and everyone uses it as a visitor, even when they are signed in to Deepnote.
Legacy block apps
Before data apps, you published an app by picking blocks from a notebook. That experience is deprecated, so build new apps as data apps instead. This section is for people who still maintain a block app.

How to create an app
Open the notebook and select Create app in the top right corner. Click Add all blocks, or add blocks one by one with Add block to app. For executable blocks, you choose whether to show the output, the code, or both.
In App settings, you can turn on Hide code blocks, Make app full-width, or Show table of contents.
There can be only one app per project. To create more apps, split your work across multiple projects.
App sharing settings
Set the app's visibility through the Sharing dropdown in App settings. It's separate from the sharing settings of the project, so a private project can have a public app.
- Same as this project. Only people who can view the project can open the app.
- Anyone with a link. Only people who have the link can open the app. It's hidden from your public profile and search engines.
- Public. The app is visible in your public profile and can be indexed by search engines.
In a project with Deepnote identity, only signed-in people can open the app, whatever this setting is.
Anyone with access to the app can reach the content of every block in its notebook, hidden blocks included. Keep sensitive data out of notebooks behind widely shared apps.
Live updates
Notebook changes save to the app automatically, and viewers refresh the tab to see them. For larger changes, prepare them in a copy of the notebook, then either paste them back into the original or publish the copy. Republishing keeps the app's link, block visibility, and settings.
Modifying the layout
Arrange blocks in the app preview pane without changing the notebook layout. Drop blocks next to each other to make a row, drop blocks below them to make columns, and drag the border between blocks to change their width. Columns sit side by side on large screens and stack on small ones.
Complex layouts work best with the full-width setting:

Show last run results
New apps use Run app from scratch, which starts with empty outputs. To show the input values and outputs from the last notebook run instead, select Show last run results under App data in App settings.
Embedding
You can embed an app in tools like Notion, Confluence, or Salesforce, or on your own website. Click Embed in the Sharing section of App settings.

In the dialog, turn on embedding. A preview of the embedded app appears on the left.

Use the Embed url in tools that turn a link into an iframe, or the embed code on a site where you control the HTML. Set the iframe's width and height to size the app. An embedded app takes input values from its URL like any other app.
Embedding apps in Notion
Type /embed in a Notion page and paste the embed link. Resize the embedded app so its columns don't collapse.
Embedding apps in Confluence
Use the /iframe command and paste the link into the URL field. Set the frameborder parameter to "hide", since the app already renders its own frame.
You can embed individual blocks too. See sharing and embedding blocks.
App interactivity
Viewers refresh the results by clicking Run in the top-right corner, or by changing an input block and clicking Apply. Apps are interactive by default. To disable interaction, turn off Allow app to be run.
How does interactivity work?
- Each run executes the notebook from top to bottom, or only the affected blocks when reactivity is on.
- The kernel that holds the app's state stays alive for 10 minutes after the last run, or until the viewer closes the app.
- Runs are stateless. Viewers don't affect the notebook or each other.
- Runs use the project's machine and environment. Running the app wakes the machine, which shuts down after a period of inactivity. The first run can take longer while the machine starts and the initialization notebook runs.
Reactivity
Turn on Allow reactivity in App settings to rerun only the blocks that depend on a changed input, instead of every block in the app. Deepnote works out the dependencies from the notebook's Python code, and Open Dependency Graph in the app editor shows them.
Reactivity needs an existing kernel, so the first run, and any run after 10 minutes of inactivity, runs every block.
Advanced usage
Automatically run the app on load
Add __run=true to the app's URL to run it on load, with any input values the URL sets:
https://deepnote.com/app/your-company/Movie-Recommendation-8dd173b0-d6bc-4212-b1b5-7c89dc0db780/?min_rating=1&max_rating=5&__run=true
Letting users download files from the project filesystem
Once a project is published as an app, people with access to the app can download its files from a URL of this format:
https://deepnote.com/publish/<project_id>/file?path=<file_path>
The project_id is the UUID at the end of the project's name in its URL. It's also in the DEEPNOTE_PROJECT_ID environment variable. Every file in the /work directory can be reached this way, so make sure nothing sensitive is there. Two viewers running the app at the same time can overwrite each other's files, so consider generating unique filenames.
This example notebook shows how, and so does this 1-minute demo:
Deleting apps
Open App settings and select Unpublish app.