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
In an ipynb file, VS Code does not highlight a called function that is declared later on in an ipynb file. Though the function is accessible when the code is executed, and is even stated to be a function when moving the mouse over the called function to check the issue, it still says that it is not defined by pylance and thus does not get highlighted by VS Code.
Extension version: 2024.12.1
VS Code version: Code 1.96.4 (cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba, 2025-01-16T00:16:19.038Z)
OS version: Windows_NT x64 10.0.19045
Modes:
This is a Pylance issue actually but it's functioning as designed. If you have a notebook where you call cells out of order, Pylance cannot infer functions farther down.
Pylance treats cells as having imported the cells before them (that's how it finds functions defined in previous cells).
Type: Bug
In an ipynb file, VS Code does not highlight a called function that is declared later on in an ipynb file. Though the function is accessible when the code is executed, and is even stated to be a function when moving the mouse over the called function to check the issue, it still says that it is not defined by pylance and thus does not get highlighted by VS Code.
Extension version: 2024.12.1
VS Code version: Code 1.96.4 (cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba, 2025-01-16T00:16:19.038Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
A/B Experiments
Images of the issue:
The text was updated successfully, but these errors were encountered: