A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://sassoftware.github.io/sas_kernel/install.html below:

Installing the SAS kernel — sas_kernel 2.4.13 documentation

sas_kernel Installing the SAS kernel

The SAS kernel package installs just like any other Python package. It is a pure Python package and works with Python 3.X installations. To install using pip, you execute one of the following commands.

pip install sas_kernel
pip install http://github.com/sassoftware/sas_kernel/releases/sas_kernel-X.X.X.tar.gz
Linux install for Anaconda Python (assuming SAS already installed)
  1. Go to https://www.continuum.io/downloads and install Anaconda Python (make sure you get Python3.X). If you install Anaconda without Superuser privileges (root or sudo), then other users on the system will not be able to access the SAS kernel. Consider the following:

  2. Install the SAS kernel package. The package has a dependency on the SASPy package. The SASPy package is available from https://github.com/sassoftware/saspy. If the pip command in your path does not map to Python3, then use pip3 instead.

  3. Verify that the package is installed.

    If you installed as a Superuser, your output should look similar to the following:

    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 (the sas user account, in this case), your output should look similar to the following:

    Available kernels:
      python3    /home/sas/anaconda3/lib/python3.5/site-packages/ipykernel/resources
      sas        /home/sas/.local/share/jupyter/kernels/sas
    
  4. Configure the SAS executable for your system.

    The connection of the Jupyter notebook to SAS is made by the SASPy Python package (which was installed as a dependency for you).

    Use the SASPy configuration documentation to complete you set up.

Linux install for Centos 6 (assuming SAS already installed)

These instructions describe hot to perform a system-wide installation for all users. You must have Superuser privileges (root or sudo).

  1. You can use the yum command to install from RPM packages.

    sudo yum install https://centos6.iuscommunity.org/ius-release.rpm
    sudo yum install python35u gcc-c++ python35u-devel python35u-pip python35u-tools
    
  2. You can use the pip command.

    wget https://bootstrap.pypa.io/get-pip.py
    python3.5 get-pip.py
    pip3 --version``
    
  3. Install Jupyter and the SAS kernel package. The package has a dependency on the SASPy package. The SASPy package is available from https://github.com/sassoftware/saspy.

    pip3.5 install jupyter
    pip3.5 install sas_kernel
    
  4. Verify that the SAS kernel package is installed.

    Your output should look similar to the following:

    Available kernels:
      python3    /usr/lib/python3.5/site-packages/ipykernel/resources
      sas        /usr/local/share/jupyter/kernels/sas
    
  5. Configure the SAS executable for your system.

    The connection of the Jupyter notebook to SAS is made by the SASPy Python package (which was installed as a dependency for you).

    Use the SASPy configuration documentation to complete you set up.

Windows install (assuming SAS already installed)
  1. Go to https://www.continuum.io/downloads and install Anaconda Python (make sure you get Python3.X). If you install Anaconda without Administrator privileges, then other users on the system will not be able to access the SAS kernel. Consider the following:

    Important

    This next group of steps is performed from a Windows command prompt ( )

  2. Install the SAS kernel package. The package has a dependency on the SASPy package. The SASPy package is available from https://github.com/sassoftware/saspy. If the pip command in your path does not map to Python3, then use pip3 instead.

  3. Verify that the package is installed.

    Your output should look similar to the following:

    Available kernels:
      python3    C:\Users\sas\AppData\Local\Continuum\Anaconda3\lib\site-packages\ipykernel\resources
      sas        C:\ProgramData\jupyter\kernels\sas
    
  4. Configure the SAS executable for your system.

    The connection of the Jupyter notebook to SAS is made by the SASPy Python package (which was installed as a dependency for you).

    Use the SASPy configuration documentation to complete you set up.

OSX (Mac) install
  1. Go to https://www.continuum.io/downloads and install Anaconda Python (make sure you get Python3.X). If you install Anaconda without Administrator privileges, then other users on the system will not be able to access the SAS kernel. Consider the following:

  2. Install the SAS kernel package. The package has a dependency on the SASPy package. The SASPy package is available from https://github.com/sassoftware/saspy. If the pip command in your path does not map to Python3, then use pip3 instead.

  3. Verify that the package is installed.

    Your output should look similar to the following:

    Available kernels:
       python3              /Users/sas/anaconda3/lib/python3.5/site-packages/ipykernel/resources
       sas                  /usr/local/share/jupyter/kernels/sas
    
  4. Configure the SAS executable for your system.

    The connection of the Jupyter notebook to SAS is made by the SASPy Python package (which was installed as a dependency for you).

    Use the SASPy configuration documentation to complete you set up.

Installing SAS NBextensions Installing from PyPi

With the release of Jupyter 4.2 (SAS kernel package version 1.2) the installation and enabling of nbextensions is improved. To install and enable the showSASLog extension use the following commands.

jupyter nbextension install --py sas_kernel.showSASLog
jupyter nbextension enable sas_kernel.showSASLog --py

To install and enable the theme extension use the following commands.

jupyter nbextension install --py sas_kernel.theme
jupyter nbextension enable sas_kernel.theme --py

To verify the nbextensions that you installed use the following commands.

If the extensions are correctly installed, you will see output similar to the following:

Known nbextensions:
  config dir: /root/.jupyter/nbconfig
    notebook section
      showSASLog/main  enabled
      - Validating: OK
      theme/theme_selector  enabled
      - Validating: OK
Installing from a cloned repository

The cloned repository has a directory for each nbextension within the file structure as shown below:

sas_kernel
|
+-- showSASLog
+-- theme

You can install the extensions from the command line. To install an extension system-wide, use the following command with Superuser privileges (root or sudo). The following command assumes that you are in the nbextensions directory. Adjust the path if you are not.

jupyter nbextension install ./showSASLog

Your output should look similar to the following (installed with Superuser privileges):

copying showSASLog/main.js -> /usr/local/share/jupyter/nbextensions/main.js

To install for your user account only, use the following command. Again, the sample command assumes that you are in the nbextensions directory. Adjust the path if you are not.

jupyter nbextension install ./showSASLog --user

Your output should look similar to the following (installed for your user account only):

copying showSASLog/main.js -> /home/sas/.local/share/jupyter/nbextensions/showSASLog/main.js

Then enable the notebook extension with the following command.

jupyter nbextension enable showSASLog

To disable the extension, you can run the following command.

jupyter nbextension disable showSASLog
Example

There is a notebook that walks through the steps to install and enable the extensions.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4