BookmarkSubscribeRSS Feed
csetzkorn
Lapis Lazuli | Level 10

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?

2 REPLIES 2
JasonWoodward
Calcite | Level 5

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.

 

 

csetzkorn
Lapis Lazuli | Level 10
Thanks. Unfortunately there is no sas kernel in C:\Users\USERNAME\AppData\Roaming\jupyter\kernels. i can invoke sas via Python from a Python notebook though. So it must be somewhere?

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1668 views
  • 0 likes
  • 2 in conversation