Skip to content
Remote Control
Jupyter notebooks2-0Antigravity AppFeaturesJupyter notebooks Antigravity App FeaturesAntigravity AppAntigravity CLIAntigravity IDE
Available on:
Antigravity AppAntigravity CLIAntigravity IDE

Inspect Jupyter notebooks (.ipynb) directly alongside your conversation, switch between rendered cells and raw JSON, leave inline comments on specific cells, and collaborate with the agent to create, update, and run notebooks.

In the Antigravity App, .ipynb files open in a native notebook viewer in the side panel so you can read Markdown documentation, syntax-highlighted code cells, and cell outputs without leaving your conversation.

To open a .ipynb file in the side panel, do any of the following:

  • Click a .ipynb file link or @-mention chip in a conversation.
  • Click + in the side panel header, choose Open File, and search for the .ipynb file.
  • Open the Overview panel and select the .ipynb file from the file list.

The Antigravity App with agile_classifiers.ipynb open in the side panel on the right, showing the Preview and Raw toggle in the header, a rendered Markdown heading, code cell 1 with Python syntax highlighting and text output, and code cell 2 with an inline ROC curve plot

The viewer supports standard nbformat v4 notebooks as well as legacy nbformat v3 (worksheets) notebooks:

ElementHow it renders
Markdown cellsFormatted Markdown, including headings, lists, links, inline code, tables, and images resolved relative to the notebook’s directory.
Code cellsExecution count gutter ([1], [2], or [ ] when unexecuted) next to syntax-highlighted code using the notebook’s language metadata (defaulting to Python).
Image outputsInline image/png, image/jpeg, and image/gif plots and figures.
Text outputsStandard output (stdout), standard error (stderr), and plain-text execution results (text/plain).
Error outputsException names, messages, and tracebacks highlighted in error styling.

Use the Preview / Raw toggle in the side panel header to switch between the rendered notebook cells and the underlying .ipynb JSON text.

If a .ipynb file contains malformed JSON or an invalid notebook structure, Antigravity automatically falls back to the Raw view and disables the Preview button with a tooltip describing the parse error.

You can leave inline comments on rendered notebook cells to point the agent to specific code or Markdown:

  1. Hover over a cell or select lines in the rendered notebook, then click Add inline comment (+).

  2. Type your feedback and click Add Comment.

Comments are anchored to the corresponding lines in the underlying .ipynb file and attached to your next message to the agent.

When you inspect changes in the Review pane or toggle Show Diff on a modified .ipynb file, Antigravity strips cell outputs before computing conversation turn diffs so diffs stay focused on your code and Markdown edits rather than large output payloads.

You can ask the agent to read, create, update, or execute notebooks in your workspace:

  • Reference a notebook: Type @ followed by the notebook name (for example, @analysis.ipynb) to attach it to your prompt.
  • Create or update cells: Ask the agent to add analysis steps, refactor functions, or generate a new .ipynb file.
  • Execute notebooks: Ask the agent to run a notebook from the terminal (for example, with jupyter nbconvert --to notebook --execute --inplace or papermill) and summarize the resulting outputs or errors.