02-13-2018 06:55 AM
You can't use Python directly in a SAS program as such, SAS does not have a Python interpreter as part of it. You can certainly call Python code, via use of the command line like any other command line programs. SAS OnDemand however is a cloud based system for education purposes, not for a working environment, so no, I don't expect it could drive any Python code, nor why such a thing would be in "training" software.
02-13-2018 08:20 AM
You cannot use Python in SAS OnDemand for Academics, but you can use it -- via a Jupyter Notebook -- in SAS University Edition. See this blog post for details. Excerpt:
With the December 2017 update, SAS University Edition now includes the SASPy package, available in its Jupyter Notebook interface. If you're keeping track, you know that SAS University Edition has long had support for Jupyter Notebook. With that, you can write and run SAS programs in a notebook-style environment. But until now, you could not use that Jupyter Notebook to run Python programs. With the latest update, you can -- and you can use the SASPy library to drive SAS features like a Python coder.