Re: IPython Plugin

146 views
Skip to first unread message

Edward K. Ream

unread,
Oct 29, 2012, 4:21:47 PM10/29/12
to leo-e...@googlegroups.com
On Sat, Oct 27, 2012 at 12:13 PM, Calen <clove...@yahoo.com> wrote:
> I look inside the source code of the ipython plugin. It seem that it need
> the IPython.ipapi module, which is depreciated after IPython 0.13. Is there any work around?

There is only one function in the ipapi module::

def get():
"""Get the global InteractiveShell instance."""
from IPython.core.interactiveshell import InteractiveShell
return InteractiveShell.instance()

Why these lines of code should be considered dubious escapes me. In
any event, we should be able to use something like this code if/when
the ipapi module goes away.

Edward

Ville M. Vainio

unread,
Oct 30, 2012, 5:04:16 AM10/30/12
to leo-e...@googlegroups.com
ipython plugin was ported to work with new ipython versions recently,
unless I'm badly mistaken.
> --
> You received this message because you are subscribed to the Google Groups "leo-editor" group.
> To post to this group, send email to leo-e...@googlegroups.com.
> To unsubscribe from this group, send email to leo-editor+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
>

Edward K. Ream

unread,
Oct 31, 2012, 8:04:43 AM10/31/12
to leo-e...@googlegroups.com
On Tue, Oct 30, 2012 at 4:04 AM, Ville M. Vainio <viva...@gmail.com> wrote:
> ipython plugin was ported to work with new ipython versions recently, unless I'm badly mistaken.

Yes, that's what I remember. The dependence on the ipapi module was
not a problem at that time.

Edward

Rand

unread,
Jan 15, 2013, 12:54:41 PM1/15/13
to leo-e...@googlegroups.com
Is the ipython bridge now working with ipython versions 0.12 or 0.13 ?

Rand

unread,
Jan 15, 2013, 1:23:49 PM1/15/13
to leo-e...@googlegroups.com
I enabled the ipython plugin in Leo 4.11. When I restart Leo, I get the following error.

C:\archives\leo-editor-latest>python launchleo.py

** isPython3: False
Leo 4.11 devel, build 5568, 2013-01-15 02:53:23 -0600
Python 2.7.0, qt version 4.7.4
Windows 6, 1, 7601, 2, Service Pack 1
leoID=randfb (in C:\Users\batcheld.RESEARCH\.leo)
load dir: C:\archives\leo-editor-latest\leo\core
global config dir: C:\archives\leo-editor-latest\leo\config
home dir: C:\Users\batcheld.RESEARCH
reading settings in C:\archives\leo-editor-latest\leo\config\leoSettings.leo
ipython plugin: can not import IPython.ipapi
reading settings in C:\Users\batcheld.RESEARCH\.leo\workbook.leo
loadOnePlugin: can not load enabled plugin: leo.plugins.ipython

Josef

unread,
Jan 23, 2013, 1:32:41 PM1/23/13
to leo-e...@googlegroups.com
I got the same result.

I would appreciate if the ipython bridge was fixed, but cannot contribute here.

- Josef
Reply all
Reply to author
Forward
0 new messages