This is a follow-up to Getting an R Jupyter Kernel in Azure Data Studio – Data Adventurer (data-adventurer.com). After getting the R kernel set, I was able to see the R kernel in my dropdown for an existing notebook. However, things are weird for a new notebook. Let’s take a look at what I’m doing.
Creating a New Notebook
I’ve created a new notebook in Azure Data Studio by going to the File menu and selecting New Notebook.
My kernel dropdown is back to the default kernels:
Where did my R go?
Hmm… being a software developer, I suspect they are loading default values in the kernel dropdown and aren’t actually using the Jupyter kernelspec list.
Reloading the Kernel List
Let’s force a dropdown kernel reload, as we know that “Changing kernel…” appears when we select a new value. I’m changing this to PowerShell. (Why PowerShell? Because I wrote a book on it long ago! It still holds a special place in my heart!)
Ah-ha! There’s my R kernel!
So if you run into issues where your added kernel isn’t in the default list, change the option in the dropdown so that it is forced to refresh the kernel list.
Time to check if Azure Data Studio has a bug already reported or file a new one! Did you know they’re on GitHub? Check out the Azure Data Studio repo!
As for this problem, I submitted an issue: Notebook kernel list: not showing kernels in kernelspec for new notebooks · Issue #17351 · microsoft/azuredatastudio (github.com)