vscode jupyter strange autocomplete "%%!"

Viewed 812

in jupyter

I recently updated it, and there is a problem when Jupyter performs automatic completion.

in editor

As shown in the picture above, there is no problem unless it is Jupyter.

Why does this %%! occur?

Downgrade does not change to normal now.

os: EndeavourOS Linux x86_64 5.13.13-arch1-1

vscode version: 1.60.0

jupyter extension version: 2021.8.2041215044

2 Answers

This happens because the "enter" is being used to accept the suggestions instead of "tab". You can fix this following these steps:

  • Click in "File" > "Preferences" > "Ctrl[+,]".
  • Fill the search bar with this text "Accept Suggestion on Enter".
  • The actual value set in checkbox could be "on" or "smart", switch to "off".

This must resolve your problem.

It's jupyter notebook related, such as # %% to create a new cell.

Related