question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[EXTERNAL] Opening new notebook in VSCode can sometimes default to python kernel

See original GitHub issue

Tracked via the following:

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:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bisen2commented, Apr 30, 2021

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.

1reaction
DonJayamannecommented, Apr 5, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found