[IPython-User] vim-ipython (on OSX Lion)

Randy Heiland heiland@indiana....
Sat Sep 10 14:26:52 CDT 2011


Hi all,

Apparently I need a little hand-holding to figure out the vim-ipython stuff...

1) start ipython:
~/git/ipython$ python ipython.py qtconsole
[IPKernelApp] To connect another client to this kernel, use:
[IPKernelApp] --existing --shell=56169 --iopub=56170 --stdin=56171 --hb=56172

-->  the qtconsole:
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
Type "copyright", "credits" or "license" for more information.

IPython 0.12.dev -- An enhanced Interactive Python.
...

2) had to build vim from source as my default vim wasn't built w/ Python enabled.
~$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 10 2011 14:29:54)
MacOS X (unix) version
… +python -python3 …


3) from a terminal window:  (Note that I'm not running X11)
~$ python foo.py
:echo has('python')  --> 1

:source /Users/heiland/git/vim-ipython/ftplugin/python/ipy.vim  --> no error; no feedback

:IPythonClipboard
--> results in the following:
:IPython :source /Users/heiland/git/vim-ipython/ftplugin/python/ipy.vim^@ failed
^-- failed --shell not specified
Press ENTER or type command to continue

At this point, I assume things have gone bad, but I try to forge ahead with:
:IPython --existing --shell=56169 --iopub=56170 --stdin=56171 --hb=56172

and then try to enter a 'import os'<ctl-s>, but it doesn't appear in the qtconsole.

Does anyone have some advice?

thanks, Randy






More information about the IPython-User mailing list