You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using jump to definition feature, while code was installed in the environment other than base, message No jump targets found is displayed. Autocompletion works fine.
When the same code is installed in base environment, jump to definition works fine.
Reproduce
Have a project folder with src folder and modules in it and pyproject.toml to provide build instructions and dependencies
Install this project using pip install --editable .
Install nb_conda_kernels extension
Create new environment with conda, call it new_env
Create new notebook, import your module from src
Select new_env kernel for the notebook
Call function from your module, test autocompletion (should work fine)
Attempt to jump to funciton definition, observe No jump targets found
Expected behavior
Module python file should be opened with the function definition to jump to.
This works only if the module was installed in base environment. At the same time autocomplete works fine.
It already has 3 environments: base, tensorflow and torch
Required: installed server extensions
Config dir: /home/lab/.jupyter
Config dir: /opt/conda/envs/tensorflow/etc/jupyter
jupyter_lsp enabled
- Validating jupyter_lsp...
jupyter_lsp 2.2.5 OK
jupyter_resource_usage enabled
- Validating jupyter_resource_usage...
jupyter_resource_usage 1.1.0 OK
jupyter_server_mathjax enabled
- Validating jupyter_server_mathjax...
jupyter_server_mathjax OK
jupyter_server_terminals enabled
- Validating jupyter_server_terminals...
jupyter_server_terminals 0.5.3 OK
jupyterlab enabled
- Validating jupyterlab...
jupyterlab 4.2.4 OK
jupyterlab_git enabled
- Validating jupyterlab_git...
jupyterlab_git 0.50.1 OK
nbclassic enabled
- Validating nbclassic...
A _jupyter_server_extension_points function was not found in nbclassic. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
nbclassic 1.1.0 OK
nbdime enabled
- Validating nbdime...
nbdime 4.0.1 OK
notebook_shim enabled
- Validating notebook_shim...
notebook_shim OK
Required: installed lab extensions
[W 2024-08-25 12:54:25.219 LabApp] 'kernel_spec_manager_class' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
JupyterLab v4.2.4
/opt/conda/envs/tensorflow/share/jupyter/labextensions
jupyterlab-execute-time v3.1.2 enabled OK (python, jupyterlab_execute_time)
nbdime-jupyterlab v3.0.1 enabled OK
jupyterlab-filesystem-access v0.6.0 enabled OK (python, jupyterlab-filesystem-access)
jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
@telamonian/theme-darcula v4.0.0 enabled OK (python, theme-darcula)
@jupyterlab/git v0.50.1 enabled OK (python, jupyterlab-git)
@jupyter-server/resource-usage v1.1.0 enabled OK (python, jupyter-resource-usage)
@jupyter-lsp/jupyterlab-lsp v5.1.0 enabled OK (python, jupyterlab-lsp)
@jupyter-widgets/jupyterlab-manager v5.0.13 enabled OK (python, jupyterlab_widgets)
@jlab-enhanced/favorites v3.2.2 enabled OK (python, jupyterlab-favorites)
a repost from jupyterlab#16680
Description
When using
jump to definition
feature, while code was installed in the environment other thanbase
, messageNo jump targets found
is displayed. Autocompletion works fine.When the same code is installed in
base
environment,jump to definition
works fine.Reproduce
src
folder and modules in it andpyproject.toml
to provide build instructions and dependenciespip install --editable .
nb_conda_kernels
extensionnew_env
src
new_env
kernel for the notebookNo jump targets found
Expected behavior
Module python file should be opened with the function definition to jump to.
This works only if the module was installed in
base
environment. At the same time autocomplete works fine.Context
It’s be easier to reproduce using the container image that I use with my data science team:
https://hub.docker.com/repository/docker/stellars/stellars-jupyterlab-ds/general
It already has 3 environments: base, tensorflow and torch
Required: installed server extensions
Required: installed lab extensions
Troubleshoot Output
Command Line Output
The text was updated successfully, but these errors were encountered: