Skip to content

Instantly share code, notes, and snippets.

@Shih-Po
Last active August 7, 2017 09:20
Show Gist options
  • Select an option

  • Save Shih-Po/a26f3aec7faa8816e8dbcda3542374a7 to your computer and use it in GitHub Desktop.

Select an option

Save Shih-Po/a26f3aec7faa8816e8dbcda3542374a7 to your computer and use it in GitHub Desktop.

Execute IPython always by current virtualenv

cd ~/some_project_path/
source .venv/bin/activate
pid install ipython

alias ipy="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"

Go

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