Skip to content

Instantly share code, notes, and snippets.

@gforsyth
Last active April 7, 2019 09:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gforsyth/188c32b6efe834337d8a to your computer and use it in GitHub Desktop.
Save gforsyth/188c32b6efe834337d8a to your computer and use it in GitHub Desktop.
HOWTO: Install JSAnimation for IPython Notebook

##Download using git

You can git clone the library from Jake Vanderplas' GitHub repository: https://github.com/jakevdp/JSAnimation

git clone https://github.com/jakevdp/JSAnimation.git

##Download without git

If you don't want to clone the repo, you can instead download a zipfile snapshot

https://github.com/jakevdp/JSAnimation/archive/master.zip

Download and unzip the file. You can extract it anywhere since you'll be deleting the folder after installation is complete.

##Install JSAnimation Library

Now open a terminal in the newly created JSAnimation folder and install the library into your current Python environment

python setup.py install --user

##Clean up

JSAnimation is now installed. If you git cloned the repository, you can keep it and use it to update JSAnimation whenever updates are released, or you can delete it and just re-clone it at a later date.

If you downloaded the zip file, you can go ahead and delete both the zip file and the extracted folder.

##Note for users with Python 3 and Python 2 If you're using multiple environments (with Anaconda or virtualenv) you have to install the JSAnimation library into each environment.

@ScottMcCormack
Copy link

Another alternative is that you can use pip to install straight from the repository using the following command
pip install git+https://github.com/jakevdp/JSAnimation.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment