-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
APPLPy is coded in Python 2 and requires Python 2.6 or later. The software has not yet been tested for forward compatibility with Python 3. Support for Python 3 will be added in future versions. In addition to Python, APPLPy requires the following software packages:
Anaconda is a free Python distribution that includes the most commonly used scientific computing packages, including all of the dependencies for APPLPy. While not required, installing Anaconda is highly recommended. Useful packages that ship with the Anaconda distribution include pandas (a data analysis package), iPython (a convenient interactive shell) and iPython Notebook (a Mathematica-style notebook that allows for easy collaboration). Anaconda helps ensure that all of these packages are well integrated and up-to-date.
The latest version of APPLPy is 0.4.3, which was released on 20 July 2016. It is available for download from the Python Package Index. APPLPy and its dependencies can be installed by issuing the following terminal commands. Note that an internet connection is required to install APPLPy through pip.
$ pip install applpy
Once it is installed, APPLPy can be updated to the latest release with
$ pip install applpy --upgrade
pip can also be used to install APPLPy from inside of an Python session with the follow syntax:
import pip
pip.main(['install','applpy'])
or upgraded with
import pip
pip.main(['install','applpy','--upgrade'])
Users who want the latest development version of APPLPy can also download source code from the APPLPy Github repo with the following command
$ git clone https://github.com/MthwRobinson/APPLPy.git
To install APPLPy, navigate to the location of the downloaded files and type
$python setup.py install
into the terminal or the command prompt. After the installation is complete, users can run APPLPy from any Python interactive session by typing
from applpy import *
APPLPy can be run from any python interactive session. For fast performance, users can run APPLPy from the Python command line interface. Another option is the iPython Notebook, which executes procedures more slowly, but provides a notebook interface that is similar to Maple or Mathematica. iPython Notebook is the most convenient option for collaborating and sharing code.
SymPy includes a convenient command for initializing variables and setting up optimal plotting and printing environments. To leverage this initialization procedure, the recommended series of commands to begin an APPLPy session are as follows:
from sympy import *; init_session()
from applpy import *
Since APPLPy has been developed entirely in Python, it is compatible with almost any operating system. APPLPy will run happily on Window, Linux or OSX.