basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

Support for Jupyter Notebook

Open GreyElaina opened this issue 1 year ago • 3 comments

still missing now.

GreyElaina avatar Mar 20 '24 07:03 GreyElaina

looks like the jupyter extension is separate from pylance and also open source: https://github.com/microsoft/vscode-jupyter

does that cover it? or is there some pylance-specific functionality that we need to add?

DetachHead avatar Apr 17 '24 00:04 DetachHead

looks like the jupyter extension is separate from pylance and also open source: microsoft/vscode-jupyter

does that cover it? or is there some pylance-specific functionality that we need to add?

When pylance is enabled, code inside notebooks have highlights & intelligence but basedpyright no. i think this part was supported by pylance (closed source XD).

GreyElaina avatar Apr 17 '24 02:04 GreyElaina

ah ok, in that case this might be easier than i thought. will look into it when i have time

DetachHead avatar Apr 17 '24 03:04 DetachHead

Is this relevant? https://github.com/microsoft/vscode-python/issues/23897 Looks like it's only in main and not in any of the releases.

EDIT: It's in pre-release and Jedi now works in each individual cell.

Klaaktu avatar Aug 27 '24 11:08 Klaaktu

i think that's only relevant to language servers that use the python.languageServer setting, which basedpyright doesn't use. i tried that approach in #424 but it didn't work out for the reasons i mentioned there

DetachHead avatar Aug 27 '24 13:08 DetachHead