Install and setup ipython for zope
I was demonstrated by Stefan (seletz) Eletzhofer how to run ipython as an interactive shell for Zope.
I was impressed enough by what he showed me to want to write some how-to about it and spread the info.
ipython can be used as a replacement to the
zopectl debug command.
InstallFirst of all, we need to install ipython, you can use setup tools to install it from source, or install it from an egg.
If you install it from an egg (assuming you have easy_install installed), you would simply key:
$ easy_install ipython
Which is easy enough, right?
These days (2013), you'd be using buildout.
Now we want to set it up for Zope.
Stefan wrote a custom setup profile for ipython.
it is hosted in the collective, under the dotipython project.
first go to the .ipython folder in your home directory:
$ cd ~/.ipython
If there is no .ipython in your home dir, launch ipython once and quit to have it created, but see the project README for more details:
It's all it needs really, now we can start our ipython session.
Zope needs some system environment to be set (
By default, the dotipython profile takes care of that.
Now all you need is to run the ipython shell with the profile we installed previously:
And you can start playing with it.
May be out of date with the current state of the project.
Don't forget to have a look at iPython excellent documentation:
There are alternate ways to use iPython and the zope debugger. See those very good related links:
And in French: