BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jessica_hale
Calcite | Level 5

I started using SASPy with SAS University Edition in the Jupyter editor. I was working on some examples and wanted to show how one could toggle between having the "teach me SAS" mode on vs. off. Unfortunately, I have been able to turn it on, but not off. According to references, sas.teach_me_SAS('true') turns the mode on - which it does - and sas.teach_me_SAS('false') is supposed to turn it off - which it doesn't. I'm not sure if I am missing something, but I am puzzled as to the issue. 

 

Thank you for any help! 

1 ACCEPTED SOLUTION

Accepted Solutions
Jared
SAS Employee

@jessica_hale The teach_me_SAS method is using the python boolean `True` and `False` to turn it on and off. Python is case-sensitive and the option should not be included inside quotes.

 

Here is a screen shot of the option being turned on and off.

 

Screen Shot 2018-03-16 at 8.15.29 AM.png

View solution in original post

6 REPLIES 6
ChrisHemedinger
Community Manager

Hi @jessica_hale - I've checked and I see the same behavior.  I'll ping @Jared (main developer for SASPy) and see if he might have an answer.

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
Jared
SAS Employee

@jessica_hale The teach_me_SAS method is using the python boolean `True` and `False` to turn it on and off. Python is case-sensitive and the option should not be included inside quotes.

 

Here is a screen shot of the option being turned on and off.

 

Screen Shot 2018-03-16 at 8.15.29 AM.png

ChrisHemedinger
Community Manager

Ha! Confusion was partly my fault, as I showed this example on my blog post.  I used the 'true' value which, in Python, must evaluate to True as a conditional.  Unfortunately, 'false' probably also evaluates to True.  I've fixed my code example and screen shot, and I've learned something new from @Jared (not unusual for me).

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
jessica_hale
Calcite | Level 5

Thank you @Jared! I keep forgetting that Python syntax is case sensitive.

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!

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.

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
  • 6 replies
  • 1358 views
  • 1 like
  • 3 in conversation