I love Python, I love Jupyter notebooks, and I love Cursor. The problem is that Cursor is not nearly as good with Jupyter notebooks as it is with plain python files. Do you have any tips that can make working with Jupyter notebooks in Cursor better?
The two main problems for me with Jupyter notebooks:
- Agent mode can’t edit
- Sometimes new cells bug out and look blank
Waiting for a fix on (2), but I think there are some good ways to work around (1). Move all your functions to a .py file and run agent mode or edits there. Make sure to have the following cell in your notebook so it automatically reloads functions:
%load_ext autoreload
%autoreload 2
One other tip, if you have a really messy notebook, potentially with lots of graphs, and want to get organized, is to make a copy of your notebook in markdown and use that for model context:
jupyter nbconvert --to markdown <your file>.ipynb
Hey, currently, Cursor doesn’t support ipynb files, but we might add this feature in the future. In the meantime, you can vote for this feature here: