-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choosing a kernel should provide a reasonable default language for cells in a new notebook. #4490
Comments
Thanks for filing @LadyNaggaga. Currently, that is the expected behavior, selecting the language in a cell does not select the kernel. To select it, please run the command: 'Notebook: Select Notebook Kernel' and select the kernel you want to use.
|
This comment has been minimized.
This comment has been minimized.
@rchiodo @brettfo
Does this work? |
Thanks for getting back to me @DavidKutu please find my responses below
|
This comment has been minimized.
This comment has been minimized.
@DonJayamanne We have some unpublished changes that listen for kernel change and if the new kernel is us, then we update the document's allowed languages to our restricted subset of 5. With a recent change to Insiders that fixed extension activation, the story now is pretty good for us regarding languages, but only if our kernel is selected. I added a comment to another issue here where I discuss how to auto-select our kernel if/when appropriate and some open questions around that experience. |
@brettfo @LadyNaggaga hey team, checking in regarding this issue as it's been a couple months. It sounds like the .NET Interactive extension now selects a default .NET language when the .NET Interactive kernel is selected (and I was able to verify this behavior with v1.0.2207011 of the .NET Interactive extension). Were there any other changes that your team needed from us for this issue to be marked resolved? |
We're going to have to make changes to the API to make this possible.
contributes: {
jupyter.kernels: [
{
title: ".NET Interactive Notebook (C#)",
defaultlanguage: "dotnet-interactive.csharp" // this is how our special languages register with vscode
} ,
{
title: ".NET Interactive Notebook (F#)",
defaultlanguage: "dotnet-interactive.fsharp"
}
]
} Note sure we need |
@DavidKutu Please make note of the changes from |
Environment data
Expected behaviour
Once the user selects the one of a .Net Interactive kernel is selected from the kernel picker I expect the kernel to be recognize it. This only happens in the initial install of .NET Interactive but, doesn't work in a new instance of VS Code.
Actual behaviour
The .NET Interactive kernel isn't recognized in new VS Code instance. The user can select one of the .NET Interactive kernels however, when they hit the run button you are promoted to "Select a kernel to run the notebook"
Steps to reproduce:
Opening a New Notebook
Ctrl + Shift + N
what kernel is it looking at ?
c#
label. .C# .NET Interactive
hit run and promoted to select a kernelLogs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)The text was updated successfully, but these errors were encountered: