Skip to content

Instantly share code, notes, and snippets.

@RichardBronosky
Last active May 22, 2018 02:29
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardBronosky/570492 to your computer and use it in GitHub Desktop.
Save RichardBronosky/570492 to your computer and use it in GitHub Desktop.
ipython ipshell pattern
"""
if you pass arguments to django-admin.py (like --settings=...) they also get
passed to IPShell, unless you explicitly specify argv to contain an empty list.
The oneliner below works. It has a short url of http://j.mp/ipshell
pull it into vim with...
:r!curl -sL j.mp/ipshell
"""
from pprint import pprint; import IPython; IPython.embed()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment