microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.28k stars 287 forks source link

Explore enabling Non-Python kernel auto complete #14672

Closed rebornix closed 5 months ago

rebornix commented 10 months ago

We might already have issues open for this request but I couldn't find that yet.

Notes:

Philonoist commented 10 months ago

Yes please! As a concrete example, I would like to use Rust jupyter kernel (https://github.com/evcxr/evcxr/blob/main/evcxr_jupyter/README.md) with completions. (rust-analyzer lsp integration exists both in plain jupyter lab, and in vscode). If I can help here, let me know.

maxandersen commented 9 months ago

I see the option Enable Kernel Completions but not seeing any requests for it to the kernel.

how does one trigger it?

DonJayamanne commented 9 months ago

t not seeing any requests for it to the kernel.

@maxandersen What version of VS Code and Jupyter extension are you using? This should be enabled by default in VS Code Insiders and the Pre-releaase version of the Jupyter extension (I think i mentioned that in a previous comment)

how does one trigger it?

This gets triggered via the characters . @ # in Java. You can customize these trigger characters via the setting jupyter.completionTriggerCharacters

maxandersen commented 9 months ago

I'm running latest vscode insiders (Version: 1.85.0-insider (Universal) Commit: 055458feab40fc308fc6d70b185068138c8cf8eb Date: 2023-11-27T05:36:15.984Z (1 day ago) and the pre-release of jupyter extension v2023.11.1003331000.

I'll try it out some more and see whats going on.

DonJayamanne commented 9 months ago

Please use the keys ctrl+space to force completions to show up Please could you enable logging as follows:

maxandersen commented 9 months ago

@DonJayamanne got it working. not sure what made the difference. I did say yes to install python and java extension this time when starting up.

can it be that the python extension matching runtime needs installing for completion to work ? it seems weird as i was executing code via the kernel without following those popup "recommendations/suggestions" on what to install.

DonJayamanne commented 5 months ago

This has been completed in the latest version of Jupyter extension. See follow settings Screenshot 2024-04-03 at 07 54 35