I can run this code fine using a Python kernel:
import saspy
sas = saspy.SASsession()
sas
cars = sas.sasdata('cars', 'sashelp')
cars.head()
Unfortunately, I cannot chose a SAS kernel anymore. I re-installed saspy and the sas kernel and as you can see the sas kernel (?) is working from Python. This:
jupyter kernelspec list
only returns the python kernel. Can I somehow refresh (?) the kernels?
I just came across this same issue while trying to setup saspy and Jupyter for all users on a computer. I could see the SAS kernel on one user, but not on the others. I was able to make it available to all users by finding the kernel in
C:\Users\USERNAME\AppData\Roaming\jupyter\kernels
and copying the sas folder from there into
C:\ProgramData\Anaconda3\share\jupyter\kernels
After doing that, I could see the Kernel in jupyter and my test SAS code runs.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.