dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.85k stars 381 forks source link

Extension setting Default Notebook Language doesn't work #3594

Open sassdawe opened 2 months ago

sassdawe commented 2 months ago

Describe the bug

The Polyglot-notebook: Default Notebook Language setting on the User level is not being respected.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

Screenshots

If applicable, add screenshots to help explain your problem. image Clicking the + code button is not creating a PowerShell block: image

sassdawe commented 1 month ago

For some reason the metadata of the .ipynb files stay .net C# specific, and I need to edit them, so it would look like this:

"metadata": {
  "kernelspec": {
   "display_name": ".NET (PowerShell)",
   "language": "PowerShell",
   "name": ".net-powershell"
  },
  "language_info": {
   "file_extension": ".ps1",
   "mimetype": "text/x-powershell",
   "name": "PowerShell",
   "pygments_lexer": "powershell",
   "version": "7.4"
  }
 }