Skip to content
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

default kernel selection is being changed after save #3527

Open
2 of 17 tasks
Fxplorer opened this issue Apr 18, 2024 · 0 comments
Open
2 of 17 tasks

default kernel selection is being changed after save #3527

Fxplorer opened this issue Apr 18, 2024 · 0 comments

Comments

@Fxplorer
Copy link

Describe the bug

Please provide as much information as you can.

Upon saving a notebook file (specifically .dib here but the .ipynb books exhibit the same behavior on me) where creation of notebook I select "F#".

Upon first save, the code box resets to csharp. Looking at the file in a text editor shows

{"kernelInfo":{"defaultKernelName":"fsharp","items":[{"aliases":[],"languageName":"fsharp","name":"fsharp"}]}}

which should be ok. Manually changing the block back to F# then adding a few new ones, then save again.

file changes to:
{"kernelInfo":{"defaultKernelName":"csharp","items":[{"aliases":[],"name":"csharp"},{"aliases":[],"languageName":"fsharp","name":"fsharp"}]}}

This happens enough times in trying to use notebooks to be quite annoying, and has happened with .dib and .ipynb

Issues that are similar in nature are:
#1309
#1038

and in vscode are:
microsoft/vscode-jupyter#4757
microsoft/vscode#140673
microsoft/vscode-jupyter#4757

Please complete the following:

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

Version: 1.0.520801+1e5d205f82c7f5bb1b2e5ce60c680491552cfa23
Library version: 1.0.0-beta.24208.1+1e5d205f82c7f5bb1b2e5ce60c680491552cfa23
Build date: 2024-04-08T08:18:30.0000000Z
  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro) : Debian 12 (LMDE6)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

vscode info:

Version: 1.88.1
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:34:12.840Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.1.0-20-amd64

Screenshots

If applicable, add screenshots to help explain your problem.
A video demo is at the link of https://www.dropbox.com/scl/fi/9p7nzjarbmciyqitib63c/2024-04-18-14-19-55.mp4?rlkey=tknlky6vs9twikwbtfb3ahr13&dl=0

with the following notes:
0:01:20 saving file after selecting F# as default kernal changes the code window to C# when save is done.
0:03:52 shows the text of the example1.dib file after adding a couple new blocks and saving. It has changed some defaults to csharp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant