Skip to content

Instantly share code, notes, and snippets.

@simonw
Created July 24, 2015 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonw/e65a3f76d7627b28d77d to your computer and use it in GitHub Desktop.
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.
#!/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