Skip to main content

A SAS kernel for Jupyter

Project description

What is this?

A SAS Kernel for Jupyter Notebooks

Dependencies

  • Python3.X

  • Jupyter

  • SAS 9.4 or higher – This includes SAS Viya

  • Linux OS

With the latest changes in saspy it is no longer a requirement that Jupyter and SAS be installed on the same machine. SAS and Jupyter can now communicate via passwordless ssh. This is in response to issue 11. The configuration details are located in sascfg.py

Documentation

Here is the link to the current documentation https://sassoftware.github.io/sas_kernel/

Install

To successfully use the SAS Kernel you must have each of the following: * SAS version 9.4 or above * Jupyter * Jupyter has a number of dependencies. See the subsections for steps on installing Jupyter on your system. * Python 3

Install for Anaconda Python (assuming SAS already installed)

  1. Download and install Anaconda Python (make sure you get Python3.X). If you install Anaconda without super user rights (root or sudo) then other users on the system will not be able to access the SAS kernel. A couple notes that I’ve observed:

  • The default install location is the users home directory. This is fine for a single user install I would put it in a common location (/opt) if you’re doing a system wide install

  • One of the prompts is to add the path to your environment. I recommend you want to answer ‘yes’ to that question so that all the installing user has the executables in their path. If you’re doing a system wide install (root or sudo) all the other users should add that path to their environmental variables

  1. Install sas_kernel. The sas_kernel has a dependency on saspy which is located here. In the command below I’m assuming that pip maps to python3 if that is not the case the you might need to use pip3 instead. pip install sas_kernel

  2. Verify that the sas_kernel is installed jupyter kernelspec list

    If you installed as a superuser, your output should similar to this:

    Available kernels:
      python3    /opt/Anaconda3-2.5.0/lib/python3.5/site-packages/ipykernel/resources
      sas        /usr/local/share/jupyter/kernels/sas

    If you installed as a regular user (sas in this case), your output should similar to this:

    Available kernels:
      python3    /home/sas/anaconda3/lib/python3.5/site-packages/ipykernel/resources
      sas        /home/sas/.local/share/jupyter/kernels/sas
  3. Verify SAS Executable is correct

    1. find the sascfg.py file – it is currently located in the install location (see above) `[install location]/site-

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SAS_kernel-2.2.0.tar.gz (84.1 kB view details)

Uploaded Source

File details

Details for the file SAS_kernel-2.2.0.tar.gz.

File metadata

  • Download URL: SAS_kernel-2.2.0.tar.gz
  • Upload date:
  • Size: 84.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for SAS_kernel-2.2.0.tar.gz
Algorithm Hash digest
SHA256 3ebddf4a85311b718acf12f56cc342f808039e83771cf0ae2b1f2f163c98c6b8
MD5 61bb39467ed065995fc9d41365c40dd3
BLAKE2b-256 af9cb22da1cf887a8aed6b59288d02c53671e67151e650143228f3c7f30bb983

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page