AI Autocomplete / Inline Suggestions not working in existing .ipynb files

Hi everyone,

I’m running into a frustrating issue with the AI inline suggestions in Jupyter Notebooks within Antigravity.

The Problem: Whenever I open an already existing .ipynb file in my directory and start typing (for example, import p), the AI does not trigger any ghost text suggestions at all.

The Contrast: If I create a brand new .ipynb file in the exact same workspace and type the exact same line, the autocomplete works perfectly right away.

I’ve attached two screenshots to illustrate this:

  • Prueba1: Shows the existing file where no suggestion appears.

  • Untitled: Shows the new file where the suggestion works immediately.

I’ve already tried forcing the trigger with custom shortcuts and modifying the when expressions for the keybindings (e.g., playing around with editorTextFocus, notebookEditorFocused, etc.), but nothing seems to “wake up” the AI in the old files.

Does anyone know why the AI model connects to new notebook cells but ignores existing ones? Any workarounds or specific settings.json configurations I should change to fix this?

Thanks in advance for the help!

Hey Daniel, I recently dug into why autocomplete fails in Jupyter notebooks, and I’ve made an extension that patches it for .ipynb files: Antigravity Notebook Tab. Works on double Tab or Shift+Tab.

It basically makes autocomplete requests from .ipynb files look like they come from regular files. Already created notebooks look a bit like regular files to the server, so it works there, but eventually it fails.