[vtkusers] iPython
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Sep 27 10:53:00 EDT 2004
Prabhu Ramachandran wrote:
>>>>>>"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.
>
Or the contrary
ipython -c "import vtk; s = vtk.vtkSphereSource"
:)
Mathieu
More information about the vtkusers
mailing list