interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Polyglot Notebook unable to load R kernel in new working folders

Open WttBe opened this issue 10 months ago • 2 comments

Describe the bug

Since the last update, I encounter a strange bug while trying to load Python and R kernels (see below for code lines):

  • In my old working folders, both kernels load without any issue
  • In new working folders, Python loads while R kernel's loading runs in a loop
  • If I relocate new files into old working folders, loading is working properly, but if I relocate old files into new working folders, loading fails.

#!connect jupyter --kernel-name pythonkernel --kernel-spec python3 #!connect jupyter --kernel-name Rkernel --kernel-spec ir

Please complete the following:

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

Version: 1.0.611902

  • OS
    • [ ] Windows 11
    • [x] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [x] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [x] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem.

WttBe avatar Feb 24 '25 14:02 WttBe

Could you provide some logs? You can enable logging by editing the Polyglot Notebooks extension's settings for Kernel Transport Args and adding the following:

"dotnet-interactive.kernelTransportArgs": [
    "{dotnet_path}",
    "tool",
    "run",
    "dotnet-interactive",
    "--",
    "[vscode]",
    "stdio",
    "--working-dir",
    "{working_dir}",
+   "--log-path",
+   "c:\\temp\\your-log-folder-name",
+   "--verbose",
],

Image

jonsequitur avatar Feb 24 '25 16:02 jonsequitur

Here they are! Thanks for your rapid answer!

Log New Folder.log

Log Old Folder.log

WttBe avatar Feb 24 '25 17:02 WttBe