BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
msasu
Fluorite | Level 6

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.

1 ACCEPTED SOLUTION

Accepted Solutions
sastpw
SAS Employee

Correct, ODA uses SAS 9.4M7, while Proc Python is only in Viya 4. So there's no Proc Python via SAS/ODA.

View solution in original post

7 REPLIES 7
HarrySnart
SAS Employee

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. 

 

HarrySnart_0-1676976141617.png

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

 

 

 

 

 

MayurJadhav
Quartz | Level 8

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 

 

MayurJadhav_0-1676977069441.png

 

Mayur Jadhav
BI Developer. Writer. Creative Educator.

SAS Blog → https://learnsascode.com
YouTube Channel: → https://www.youtube.com/@imayurj
msasu
Fluorite | Level 6
This is exactly what I see in my SAS Studio as well.
sastpw
SAS Employee

Correct, ODA uses SAS 9.4M7, while Proc Python is only in Viya 4. So there's no Proc Python via SAS/ODA.

msasu
Fluorite | Level 6

Many thanks @HarrySnart for your prompt response.

However, I am not able to see Python program. I see below options when right clicking:

 

msasu_2-1676977633794.png

 

tom_grant
SAS Super FREQ

Click this button on your SAS OnDemand for Academics Dashboard & follow the Instructions:

tom_grant_0-1676979687012.png

 

 

See this YouTube video:

https://www.youtube.com/watch?v=6mcsbeKwSqM&t=3s

 

Sajid01
Meteorite | Level 14

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.

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1534 views
  • 5 likes
  • 6 in conversation