[vtkusers] iPython
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Sep 27 11:08:57 EDT 2004
Charles,
PYTHON_EXECUTABLE is used internally to run the VTK tests. You can do
'grep -r PYTHON_EXECUTABLE *'.
HTH
Mathieu
Charles Moad wrote:
> That would only work when I have all the PYTHONPATH stuff set. I was
> wanting to avoid that and make the "vtkpython" command default to
> ipython. What is the point of the PYTHON_EXECUTABLE variable?
>
> - Charlie
>
> On Mon, 2004-09-27 at 09:53, Mathieu Malaterre wrote:
>
>>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