Updated Bash IPython Alias That Works for 0.10 and 0.11.

In July 2011, IPython released version 0.11, which changes/ breaks the embedded shell api.



I use this bash alias to get it work right under both versions (0.11 first, then 0.10):

alias ipython='python -c "from IPython import embed; embed()" 2>/dev/null || python -c "import IPython; IPython.Shell.IPShell().mainloop()"'