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 navigation doesn't work from jupyter notebook (while it works fine from a module) #212108

Open
ibobak opened this issue May 6, 2024 · 0 comments
Assignees

Comments

@ibobak
Copy link

ibobak commented May 6, 2024

Type: Bug

When my cursor is on "pymc" (see below) in a jupyter notebook and I perform "Go to definition" command, navigation will not work from the notebook. In the same time, navigation will work fine from a separate module, as shown below.

This is the notebook:
image

And this is the module:
image

How everything is set up:
I have a separate environment installed with conda.
When configuring the kernel for the notebook, I've set it to the python environment to be exactly the same as the environment set by "Python: Select Interpreter" command.
image

image

Expected behavior is this: navigation should work BOTH from notebook and from the module.

VS Code version: Code 1.89.0 (b58957e, 2024-05-01T02:08:25.066Z)
OS version: Linux x64 6.4.6-060406-generic
Modes:
Remote OS version: Linux x64 6.5.0-27-generic

System Info
Item Value
CPUs AMD Ryzen 7 3700X 8-Core Processor (16 x 4191)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 0, 0, 0
Memory (System) 46.95GB (31.88GB free)
Process Argv --crash-reporter-id d91c5c25-2c49-4af3-80cb-302636dde5af
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Item Value
Remote SSH: macpro2
OS Linux x64 6.5.0-27-generic
CPUs Intel(R) Xeon(R) W-3275M CPU @ 2.50GHz (28 x 2493)
Memory (System) 125.78GB (34.32GB free)
VM 100%
Extensions (24)
Extension Author (truncated) Version
debugpy ms- 2024.6.0
python ms- 2024.6.0
vscode-pylance ms- 2024.4.1
jupyter ms- 2024.4.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.17
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
project-manager ale 12.8.0
zoomer ant 0.2.3
docs-view bie 0.1.0
vscode-icon-theme jtl 1.6.6
vsc-python-indent Kev 1.18.0
jupyter-keymap ms- 1.1.2
remote-containers ms- 0.362.0
remote-ssh ms- 0.110.1
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.88.2
vscode-remote-extensionpack ms- 0.25.0
remote-explorer ms- 0.4.3
remote-server ms- 1.5.1
vs-keybindings ms- 0.2.1
jinja who 0.0.8
material-theme zhu 3.17.2

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
ccp2r3:30993541
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
9c06g630:31013171
pythoncenvpt:31022790
dwnewjupytercf:31035177

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