[EXTERNAL] Opening new notebook in VSCode can sometimes default to python kernel
See original GitHub issueTracked via the following:
- microsoft/vscode#113937
Describe the bug
When opening a new dotnet interactive notebook in VSCode using the .NET Interactive: Create new blank notebook
from the command palette, the resulting notebook uses the python jupyter kernel. The notebook can be reopened with the .NET kernel by running View: Reopen Editor With...
and selecting .NET Interactive for Jupyter
, but it initially opens with the python kernel. I imagine this is what caused the confusion in #1188.
Please complete the following:
Which version of .NET Interactive are you using?
- .NET Interactive Version: 1.0.217503+a53405c9aae40b1ff468e38b641a981f615d8fdb
- VSCode Insiders Version: 1.55.0-insiders
- Jupyter Extension Version: v2021.5.685944597
- OS
- Windows 10
- macOS
- Linux (Please specify distro)
- iOS
- Android
- Browser
- Chrome
- Edge
- Firefox
- Safari
- Frontend
- Jupyter Notebook
- Jupyter Lab
- nteract
- Visual Studio Code
- Visual Studio Code Insiders
- Other (please specify)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Manage Jupyter Kernels in VS Code
Running the Notebook: Select Notebook Kernel command. Choose Select Another Kernel. Choose Existing Jupyter Server. Select your server. Codespaces Jupyter ...
Read more >VS Code - Jupyter notebook doesn't automatically select ...
I have created a simple jupyter notebook in VS Code and selected it to use my default python3 kernel (/usr/local/bin/python3). Everything works ...
Read more >Advanced Visual Studio Code for Python Developers
In this tutorial, you'll learn how you can configure, extend, and optimize Visual Studio Code for a more effective and productive Python development ......
Read more >Jupyter Notebooks in VS Code Extension NEW in 2022
Jupyter Notebooks in VS Code Extension NEW in 2022 - Tutorial Introducing Kernels, Markdown, & Cells. 19K views · 1 year ago ...more ......
Read more >Running Jupyter Notebook on Visual Studio Code
By default, VS Code will instantiate a local Jupyter server once you open or create a .ipynb file. But if you wish to...
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
FWIW I just tested this using the insiders build and it is working as expected. The .NET extension defaults to C# and the Jupyter extension does not.
FYI - Based on disccussions we had with PMs & others, Jupyter extension added an API endpiont for .NET extension to contribute to
registerNewNotebookContent(options: { defaultCellLanguage: string }): void;
Not sure if thats not used. Also last time we had a sync I mentioned a problem with this approach (would work only when .NET extension has been loaded), we need a static contribution.
Here’s the issue at Jupyter end, https://github.com/microsoft/vscode-jupyter/issues/4859