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

Jupyter notebook autocomplete suggestion "%%!" #7880

Closed
jamesoflol opened this issue Oct 10, 2021 · 8 comments · Fixed by #8247
Closed

Jupyter notebook autocomplete suggestion "%%!" #7880

jamesoflol opened this issue Oct 10, 2021 · 8 comments · Fixed by #8247
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-intellisense Intellisense & other language features in notebook cells for any language

Comments

@jamesoflol
Copy link

Issue Type: Bug

Starting docstring (''') or a function definition causes autocomplete to suggest "%%!". It means I need to ESC away from it constantly, or it chucks "%%!" in my code.

Someone else reported this issue here: https://stackoverflow.com/questions/69134016/vscode-jupyter-strange-autocomplete

Extension version: 2021.9.1001312534
VS Code version: Code 1.61.0 (ee8c7def80afc00dd6e593ef12f37756d8f504ea, 2021-10-07T18:13:09.652Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

System Info
Item Value
CPUs AMD Ryzen 5 3600 6-Core Processor (12 x 4229)
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) 31.93GB (25.78GB free)
Process Argv --crash-reporter-id 7693d6ac-337e-4f4a-a5f3-9b5534313163
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30358481
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
vsccppwtct:30378365
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30371810
dockerwalkthru:30377721
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedt:30364666
pythonvspyt187:30373474
pydsgsc2:30361791
vsqsis200:30374795
vsaa593cf:30376535
vssld246:30379911

@jamesoflol jamesoflol added the bug Issue identified by VS Code Team member as probable bug label Oct 10, 2021
@Cube707
Copy link

Cube707 commented Oct 11, 2021

same with comma , which is very anoing when typing lists of lists.

Example:

M = [
  [1,2],
  [2,3]
]

When typing the comma after the first matrix line, %%! gets sugested and because I want to linebreak, it gets inserted.

@julien-blanchon
Copy link

Same, it's quite annoying ...

@DonJayamanne DonJayamanne added language-python notebook-intellisense Intellisense & other language features in notebook cells for any language and removed needs-triage labels Oct 14, 2021
@Greco1899
Copy link

I'm facing the same issue.

Jupyter Extension
Version: 2021.9.1101343141

VS Code
Version: 1.61.0 (user setup)
Commit: ee8c7def80afc00dd6e593ef12f37756d8f504ea
Date: 2021-10-07T18:13:09.652Z
OS: Windows_NT x64 10.0.19042

@hexsum
Copy link

hexsum commented Oct 26, 2021

any update for this issue, guys? very anoing for a long time

@rchiodo
Copy link
Contributor

rchiodo commented Oct 26, 2021

This result is returned by jupyter's kernel. I think we're likely too aggressive in our trigger characters for jupyter's intelliense as registered here:

I think a likely fix would be to change the set of trigger characters to a setting and then users can decide how aggressive they want autocomplete.

@FelipeCoimbra
Copy link

Same here, quite annoying.

This seems to have been introduced at v2021.8.2031187289.

Rolling mine back to v2021.8.1236758218 solved it for now.

@kvanderwijst
Copy link

Indeed, it really breaks up your typing workflow, having to Escape everytime you enter a new line in a notebook.

Can't there be a filter for "%%!"? I can't imagine it every being useful.

@shin-t-o
Copy link

shin-t-o commented Nov 7, 2021

I also downgraded to v2021.8.2031187289 to avoid this problem for now, but I hope you'll do something about it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug notebook-intellisense Intellisense & other language features in notebook cells for any language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants