SAS® OnDemand for Academics

Working with Python, including Jupyter Notebook

Java version 1.8.0_162 or higher, Python 3.3 or higher, and SASPy 3.3.4 or higher (using the latest version is recommended) are required before proceeding.

For more information on SASPy see SASPy on sassoftware.github and the installation and configuration instructions. Note that this is a Remote IOM using Java configuration.

The following steps can connect you to the SAS servers provided by SAS OnDemand for Academics.

(Note: A SAS OnDemand for Academics account is required. If you have not yet setup your SAS OnDemand for Academics account, you should do so before performing the steps below. See our Frequently Asked Questions for more details.)

In order to integrate with SAS OnDemand for Academics using this method, you must:

  • Create files to configure Python to access SAS OnDemand for Academics
  • Connect to the SAS OnDemand resources using Python
  • Create files to configure Python to access SAS OnDemand for Academics

    These files need to be created and referenced only once.

      Using a text editor, we recommend you create two files:



    return to topgo to top

    Connect to the SAS OnDemand for Academics Servers from Python

    This step should be performed any time that you want to connect to hosted SAS servers.

      From a Python prompt or from another Python interface, like Jupyter Notebook, use the following commands to confirm a connection to SAS OnDemand for Academics.

      import saspy
      sas_session = saspy.SASsession()

    Note: If you encounter, "None of the requested encryption algorithms are supported by both peers: AES," please confirm you are running the correct version of Java (1.8.0_162 or greater) and Contact Us for additional assistance.

    return to topgo to top

    Need more information or help troubleshooting issues with SASPy?

    The following resources can help to answer many questions. We recommned trying them in the order given below.

    return to topgo to top