Set-up Instructions


appJar was designed for use in schools - it therefore doesn't require any kind of special installation.
Instead, just DOWNLOAD the ZIP file, unzip, and go - just put the folder in the right place.

Pip Installation

However, if you can install python packages - we support that too!

sudo pip3 install appjar - this will download & install appJar ready for python 3.
sudo pip3 install appjar --upgrade - this will upgrade appJar to the latest version.

# import the appJar library
from appJar import gui

Single-user Set-up

If you can't/don't want to install using pip, simply:

# import the appJar library
from appJar import gui

(As long as it's in the same folder as your code, it'll work...)

Multi-user Set-up

If you're trying to install appJar in a school, everyone can download their own copy (see above), or:

# add the appJar folder to your PATH
import sys
sys.path.append("E:\PYLIB")
# import the appJar library
from appJar import gui

Advanced Set-up

If you've got friendly technicians, you can even avoid having to always add appJar to your path...

Windows


Create an environment variable, which will mean E:\PYLIB is always in your path.

Linux (Raspberry Pi) /MacOS


If you're running python from a terminal:

    echo 'export PYTHONPATH="${PYTHONPATH}:~/Documents/PYLIB"' >> ~/.bashrc

IDLE on Linux (raspberry Pi)/MacOS


If you're running python in IDLE, you'll need to add appJar to your site-packages

    mkdir -p ~/Library/Python/3.4/lib/python/site-packages
    cd ~/Library/Python/3.4/lib/python/site-packages
    echo '~/Documents/PYLIB' > appJar.pth
    import sys
    print(sys.version)