Jupyter Inline Code Generation

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

While working with Jupyter Notebooks, Cursor can no longer generate more than two lines of code. Previously I was able to prompt Ctrl+K inside a python cell and instruct about the code, which I wanted to be generated. Now it is stuck up to two lines.

Steps to Reproduce

  1. Create an Jupyter notebook .ipynb file
  2. In a code cell prompt for a code generation (i.e.Ctrl+K and instruct to create a Fibonacci sequence)
  3. Observe it generating two lines and
  4. Display a Generating… message

Expected Behavior

Generate the requested code in the cell I am working on

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.34 (user setup)
VSCode Version: 1.105.1
Commit: 643ba67cd252e2888e296dd0cf34a0c5d7625b90
Date: 2026-01-10T21:17:10.428Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

Various combinations. No change.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @Peio_Popov

Thanks for reporting this. I can reproduce this when I run Cmd+K without highlighting any text first.

Obviously not the intended behavior. I’ll report this. :folded_hands:

Dear Colin, thank you for taking care of this bug! Can you please provide an issue reference or any other means so I can track when it’s eventually resolved.

Thank you

There’s no public issue tracker that I can share, but I’ll do my best to follow-up here once there’s movement!

I see the same issue. Could we fix it please? Thank you!

I have the same issue. Anyone found a solution?

Has this issue fixed yet?

Also experiencing this. I noticed it first in a notebook, but it’s happening even on non-notebook files; was able to reproduce on a blank text file in an empty new project. I’ve been able to work around it for now by inserting a blank comment line and highlighting that before hitting cmd+k.

I’m using version 2.4.21, and I still see the issue.

Describe the Bug

As shown in this pic, in jupyter, generator ALWAYS stuck after first 2 lines. But never shown in tweaking codes

bug appear: in Cursor IDE


Steps to Reproduce

  1. select a blank line in jupyter cell

  2. type in your request

  3. cursor stuck after generating 2 lines

  4. every time


Expected Behavior
Should finish generating all codes.


Screenshots / Screen Recordings


Operating System

MacOS 26.1


Version Information

Version: 2.4.21
VSCode Version: 1.105.1
Commit: dc8361355d709f306d5159635a677a571b277bc0
Date: 2026-01-22T16:57:59.675Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.1.0

Additional Information
Even if you ask cursor to tweak one single letter, the bug does not show


Does this stop you from using Cursor?

No - Cursor works, but with this issue

Has this issue been resolved?
There have been quite a few updates to the IDE, but this issue has not been fixed yet.

@hugzee3 This should be fixed in the latest version of 2.4. What version (precisely) are you using?