Cursor not able to tab complete jupyter notebook python cellsnotebooks

Hi,
I’m trying to use Jupiter notebooks with Cursor. Cursor provides me with long complex Jason text when I ask for help with a notebook. I am told this is a notebook. If I save it as a Jupiter notebook I had to run it. I just get errors.

If I open the Jupiter notebook inside Cursor, then I am not able to get tab completions in the markdown or the python.

I can eventually talk cursor into providing just the python for one cell at a time. However, in this case as it provides one cell at a time, this is in the chat only and is not mapped to a file. Further all the libraries are re-imported with each cell. This happens even if the notebook file is attached to the context.

I have started using Marimo as the Marimo file is just a python script. I hope I will have better interaction between Cursor and the Marimo Python script.

Is anyone having better luck with this? How did you make it work??

Best regards