Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Jump only in the same notebook #1073

Open
on46zohu opened this issue Apr 4, 2024 · 4 comments
Open

Code Jump only in the same notebook #1073

on46zohu opened this issue Apr 4, 2024 · 4 comments

Comments

@on46zohu
Copy link

on46zohu commented Apr 4, 2024

I am not sure if it's a bug or the intended behavior, (could not confirm in the documentation), but I have the following issue:

If I try "Jump to Definition" or "Jump to References" within a .py file or between .py files, it works fine.

But I try the same features in a notebook (.ipynb), it only works within the same notebook. That means:

  • I cannot jump to definition/references if I defined a function etc. in another notebook, even though Shift + Tab shows the definition, signature etc.

  • I cannot jump to definition/references if the definition is in a .py file, even though Shift + Tab shows the definition, signature etc.
    "No jump targets found" message pops up.

Google Chrome version: 123.0.6312.88

JupyterLab v4.1.2

labextension list:
/usr/local/share/jupyter/labextensions
nbdime-jupyterlab v3.0.1 enabled OK
jupyterlab-plotly v5.18.0 enabled X
jupyter-matplotlib v0.11.3 enabled OK
jupyterlab-logout v1.0.0 enabled OK (python, jupyterlab_logout)
jupyterlab-theme-toggler v1.0.0 enabled OK (python, jupyterlab_theme_toggler)
jupyterlab-topbar-text v1.0.0 enabled OK (python, jupyterlab_topbar_text)
jupyterlab_code_formatter v2.2.1 enabled X (python, jupyterlab_code_formatter)
jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
@jupyterlab/git v0.50.0 enabled OK (python, jupyterlab-git)
@epi2melabs/jupyterlab-play-cell-button v1.0.0 enabled X (python, jupyterlab_play_cell_button)
@jupyter-notebook/lab-extension v7.1.0 enabled OK
@jupyter-lsp/jupyterlab-lsp v5.1.0 enabled OK (python, jupyterlab-lsp)

@krassowski
Copy link
Member

Which language server are you using?

@on46zohu
Copy link
Author

on46zohu commented Apr 4, 2024

Please see the image:

image

@krassowski
Copy link
Member

Does it also happen if you were to use python-lsp-sever instead?

@on46zohu
Copy link
Author

on46zohu commented May 8, 2024

So sorry for the late response due to my workload. I had finally time to try your suggestion. But yes, I see the same issue with python-lsp-server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants