Skip to content

Cookbook: Using IPython with Console2

Brian Granger edited this page Feb 13, 2013 · 1 revision

Make sure python is referenced in your Path: < my python path >\python.exe (where < my python path > is the directory where you installed python, such as "C:\Python26")

Make sure IPython is installed (downloads), as well as PyReadline (https://launchpad.net/pyreadline/+download)

Adding an IPython tab

In Console2, right-click go to Edit --> Settings... --> Tabs

Add new tab with

  Title: IPython
  Icon: < my python path >\DLLs\py.ico
  Shell: cmd.exe /k "< my python path >\Scripts\ipython.py -p sh"
  Startup dir: C:\ (or wherever)

Hit ok and in your Console just go to File --> New Tab --> IPython and you're off and running!

If the upper does not work, try this:

Add new tab with

  Title: IPython
  Icon: < my python path >\DLLs\py.ico
  Shell: < my python path >\Scripts\ipython.exe (C:\Python27\Scripts\ipython.exe)
  Startup dir: C:\ (or wherever)

If the above does not work, try this:

Add new tab with

  Title: IPython
  Icon: < my python path >\DLLs\py.ico
  Shell: cmd.exe /k "< my python path >\Scripts\ipython.exe"
  Startup dir: C:\ (or wherever)

Creating a shortcut

To create a shortcut, Create a shortcut to console.exe, right-click -> properties. Set target to e.g.

C:\opt\Console\console.exe -c "/k python c:\python25\scripts\ipython.py -p sh"

For Console2, you'll need to use the -r option in place of -c. You could also use this Console2 example config file.

For newer version of ipython, user:

C:\opt\Console\console.exe -c "/k python c:\python27\scripts\ipython-script.py"

If you have problems with ctrl+C killing Console2 immediately, launch ipython from a normal Console2 session manually.

Clone this wiki locally