Skip to content

Instantly share code, notes, and snippets.

@HarishAtGitHub
Created June 15, 2017 02:16
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 HarishAtGitHub/ff7f732bd1e7f221602130a3bf5027ad to your computer and use it in GitHub Desktop.
Save HarishAtGitHub/ff7f732bd1e7f221602130a3bf5027ad to your computer and use it in GitHub Desktop.
ipython script
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment