Jupyter Code Cells (#%%) "Run Cell | Run Above | Debug Cell" all move when typing
Issue Type: Bug
I started a .py file and entered Jupyter code cells (#%%). Every time I type anywhere in the file, the "Run Cell | Run Above | Debug Cell" text moves up and down.
The code cells still work but this is very distracting.
VS Code version: Code 1.60.0 (e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff, 2021-09-01T10:41:52.311Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.83GB (3.84GB free) |
| Process Argv | --crash-reporter-id 997b1ef7-4bed-4934-aa1a-3ddb6bdedbee |
| Screen Reader | no |
| VM | 0% |
Extensions (7)
| Extension | Author (truncated) | Version |
|---|---|---|
| bracket-pair-colorizer | Coe | 1.0.61 |
| python | ms- | 2021.9.1218897484 |
| vscode-pylance | ms- | 2021.9.1 |
| jupyter | ms- | 2021.8.2041215044 |
| jupyter-keymap | ms- | 1.0.0 |
| autodocstring | njp | 0.5.4 |
| code-spell-checker | str | 2.0.4 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspyt653:30270858
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30358480
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30364497
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30360495
bridge0723:30353136
pythonrunftest32:30365366
pythonf5test824cf:30361778
javagetstartedc:30364665
pythonvspyt187:30365361
pydsgst2:30361792
vscus224cf:30358040
vssid140cf:30363604
vssur157:30365996
I think it's probably caused by updating codelens on type.
bably caused by updating codelens on type.
Yes, i agree. I think we've had plenty of users complain about this in the past as well.
We need to update on type, but maybe we don't need to delete old ones? They shouldn't disappear. Or is that a VS code problem to solve?
Not sure how to repro this as not all of us are seeing it, but we can do something to alleviate the problem based on not updating codelenses if they haven't changed when typing.
I can't repro the behavior as described here, and since the issue is a year old without any other external input of similar cases, I'm just going to close this issue for now.
Even with a large file that starts to cause performance issues, only single code lenses are affected, and only when they do need to change - adding/removing lines within a cell does not cause this issue.
We should attempt to improve our code lens provider experience in https://github.com/microsoft/vscode-jupyter/issues/11433 and hopefully that will resolve this issue if it still exists