[vtkusers] iPython

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Mon Sep 27 09:45:16 EDT 2004


>>>>> "CM" == Charles Moad <cmoad at indiana.edu> writes:

    CM> 	How would I go about making vtkpython run ipython
    CM> 	instead of normal
    CM> python?  I set PYTHON_EXECUTABLE to /usr/bin/ipython, but
    CM> running vtkpython still invokes the normal python shell.

vtkpython -c "from IPython.Shell import IPShellEmbed; ips =IPShellEmbed(); ips()"

Put that in a script and use that.  Read the example-embed.py example
in the IPython sources if you want to do more fancy stuff.

cheers,
prabhu



More information about the vtkusers mailing list