I also find a similar issue here which was not answered and fixed.
Pasted some cursor message here from Cursor Tab:
2025-05-27 09:59:38.441 [info] ERROR:pygls.protocol.json_rpc:Failed to handle request 60 textDocument/definition DefinitionParams(text_document=TextDocumentIdentifier(uri=‘vscode-notebook-cell://ssh-remote%2B%E5%9B%BD%E4%BF%A1%E6%9C%8D%E5%8A%A1%E5%99%A8_cpu_%E5%86%85%E7%BD%91vpn%E8%BF%9E%E6%8E%A51/home/quant/data/intraday_strat/code/%E8%AE%A2%E5%8D%95%E7%B0%BF%E7%9B%98%E5%8F%A3%E5%8F%98%E5%8A%A8%E5%9B%A0%E5%AD%90%E9%99%8D%E9%A2%91.ipynb#Y105sdnNjb2RlLXJlbW90ZQ%3D%3D’), position=10:43, work_done_token=None, partial_result_token=None)
Traceback (most recent call last):
File “/home/quant/.cursor-server/extensions/ms-python.python-2025.7.2025052301-linux-x64/python_files/lib/jedilsp/pygls/protocol/json_rpc.py”, line 266, in _handle_request
self._execute_request(msg_id, handler, params)
File “/home/quant/.cursor-server/extensions/ms-python.python-2025.7.2025052301-linux-x64/python_files/lib/jedilsp/pygls/protocol/json_rpc.py”, line 188, in _execute_request
self._send_response(msg_id, handler(params))
^^^^^^^^^^^^^^^
File “/home/quant/.cursor-server/extensions/ms-python.python-2025.7.2025052301-linux-x64/python_files/lib/jedilsp/jedi_language_server/notebook_utils.py”, line 373, in wrapped
result = f(notebook_server, notebook_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/quant/.cursor-server/extensions/ms-python.python-2025.7.2025052301-linux-x64/python_files/lib/jedilsp/jedi_language_server/server.py”, line 417, in definition
names = jedi_script.goto(
^^^^^^^^^^^^^^^^^
File “/home/quant/.cursor-server/extensions/ms-python.python-2025.7.2025052301-linux-x64/python_files/lib/jedilsp/jedi/api/helpers.py”, line 484, in wrapper
raise ValueError(‘column parameter (%d) is not in a valid range ’
ValueError: column parameter (43) is not in a valid range (0-36) for line 337 (’ pl.lit(“14:30:00”).alias(“Time”)\n’).