[vtkusers] iPython

Charles Moad cmoad at indiana.edu
Mon Sep 27 10:55:45 EDT 2004


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