Pylance / Language server full support
See original GitHub issueEnvironment data
- VS Code version: Version: 1.51.1 Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f Date: 2020-11-10T23:31:29.624Z Electron: 9.3.3 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Linux x64 5.4.80-2-MANJARO
- Jupyter Extension version (available under the Extensions sidebar): v2020.12.414227025
- Python Extension version (available under the Extensions sidebar): v2020.12.424452561
- OS (Windows | Mac | Linux distro) and version: Linux svelte 5.4.80-2-MANJARO #1 SMP PREEMPT Sat Nov 28 09:58:18 UTC 2020 x86_64 GNU/Linux
- Python and/or Anaconda version: 3.9.1, conda, conda 4.8.4
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
- Jupyter server running: Local
Expected behaviour
Language server functions are available
Eg, pressing F2 to rename a variable, I get the rename variable popup
Actual behaviour
Pylance works for .py
files:
But doesn’t work with Jupyter .ipynb
notebooks:
I tried saving the .ipynb
- same issue.
Steps to reproduce:
- See images above.
Logs
Output for Jupyter
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Jupyter
)
User belongs to experiment group 'jupyterTest'
Error 2021-01-06 09:44:36: Jupyter Kernel Spec not found for a local connection
> /bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> /bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py jupyter kernelspec --version
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Started kernel Python 3.9.1 64-bit ('rl': conda)
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> ~/.local/share/miniconda3/envs/rl/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Issue Analytics
- State:
- Created 3 years ago
- Reactions:46
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Pylance Now Default Language Server for Python in Visual ...
"Today, we're excited to announce that the Python extension's default language support is now powered by Pylance, said Savannah Ostrowski, ...
Read more >Announcing Pylance: Fast, feature-rich language support for ...
We are excited to announce Pylance, our fast and feature-rich language support for Python! Pylance is available today in the Visual Studio ...
Read more >Pylance - Visual Studio Marketplace
Pylance is the default language support for Python in Visual ... Note: If you've previously set a language server and want to try...
Read more >Pylance Is a New Python Language Server for Visual Studio ...
Microsoft has announced Pylance, a new language server for Python aimed to ... IntelliSense and Visual Studio Code support for the language.
Read more >Updated Python support in VS Code brings browser editing ...
The company has also archived its open-source Python language server in favour of the closed-source Pylance. The Python Extension has over ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would love a full pylance experience within notebooks as well. I have a significant increase of code mistakes in notebooks compared to plain python files with pylance. It will definitely help my productivity when working within notebooks.
+1 pylance does not work for jupyter notebooks, and would be nice to have.