Hello,
I am very new to SAS Studio and want to know how to start a Python notebook in SAS Studio? Right click on the tabs only option is New SAS Program. Any quick help is much appreciated.
Correct, ODA uses SAS 9.4M7, while Proc Python is only in Viya 4. So there's no Proc Python via SAS/ODA.
Hi @msasu SAS Studio is a browser based IDE for building SAS code. In newer versions there is now a Python editor. This adds a convenient wrapper for the PROC PYTHON procedure.
However this is a .py file not .ipynb.
If you want to access SAS functionality from a Jupyter Notebook interface you can use the SWAT (short for Scripting Wrapper for Analytic Transfer) and SASpy libraries to create connections to SAS from Python. There is also a SWAT library for the R programming language.
Hope this helps
Harry
Hi @HarrySnart
It seems "python code editor" is not included with SAS® OnDemand for Academics.
Do you know how to get the access on python code editor?
cc: @msasu
Correct, ODA uses SAS 9.4M7, while Proc Python is only in Viya 4. So there's no Proc Python via SAS/ODA.
Many thanks @HarrySnart for your prompt response.
However, I am not able to see Python program. I see below options when right clicking:
Click this button on your SAS OnDemand for Academics Dashboard & follow the Instructions:
See this YouTube video:
https://www.youtube.com/watch?v=6mcsbeKwSqM&t=3s
I am very new to SAS Studio and want to know how to start a Python notebook in SAS Studio?
Not at present.
One needs to use Jupyter Notebook or VS Code with Jupyter notebook extensions or some other such client to open Jupyter notebooks and not SAS Studio.
If you are a SAS On demand for academics user see the instructions here https://support.sas.com/ondemand/saspy.html
The video tutorial referred by @tom_grant is a good tutorial on using Jupyter Notebook for connecting to SAS.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.