DATA Step, Macro, Functions and more

SASPy - Unable to turn off "teach me SAS" mode

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 11
Accepted Solution

SASPy - Unable to turn off "teach me SAS" mode

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! 


Accepted Solutions
Solution
‎03-19-2018 10:49 AM
SAS Employee
Posts: 15

Re: SASPy - Unable to turn off "teach me SAS" mode

[ Edited ]
Posted in reply to jessica_hale

@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


All Replies
Community Manager
Posts: 3,364

Re: SASPy - Unable to turn off "teach me SAS" mode

Posted in reply to jessica_hale

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.

Occasional Contributor
Posts: 11

Re: SASPy - Unable to turn off "teach me SAS" mode

Posted in reply to ChrisHemedinger

@ChrisHemedinger Thank you! 

Solution
‎03-19-2018 10:49 AM
SAS Employee
Posts: 15

Re: SASPy - Unable to turn off "teach me SAS" mode

[ Edited ]
Posted in reply to jessica_hale

@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

Community Manager
Posts: 3,364

Re: SASPy - Unable to turn off "teach me SAS" mode

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).

Occasional Contributor
Posts: 11

Re: SASPy - Unable to turn off "teach me SAS" mode

Posted in reply to ChrisHemedinger
Occasional Contributor
Posts: 11

Re: SASPy - Unable to turn off "teach me SAS" mode

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

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 119 views
  • 1 like
  • 3 in conversation