Created
July 24, 2015 23:48
-
-
Save simonw/e65a3f76d7627b28d77d to your computer and use it in GitHub Desktop.
Script for quickly trying out Python modules - run "tryout.sh jsonschema" to pip install jsonschema into your scratch virtualenv and run ipython with that module loaded.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create scratch with 'virtualenv --python=python2.7 scratch && scratch/bin/pip install ipython' | |
scratch/bin/pip install $1 | |
scratch/bin/ipython -c "import $1; print '\nimported $1'" -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment