[vtkusers] iPython
Charles Moad
cmoad at indiana.edu
Mon Sep 27 12:01:41 EDT 2004
This solution seemed to work when I made vtkpython and alias for that
command. The problem that arises is that it breaks sys.argv by shifting
everything. Getting very close though.
Maybe there is a way to embed something intelligent in ".pythonrc"?
- Charlie
On Mon, 2004-09-27 at 08:45, 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.
>
> cheers,
> prabhu
>
>
More information about the vtkusers
mailing list