[IPython-dev] New hooks suggestion: line buf, cursor pos

Ville M. Vainio vivainio at gmail.com
Sun Dec 7 15:24:12 EST 2008


On Sun, Dec 7, 2008 at 9:40 PM, Brian Granger <ellisonbg.net at gmail.com> wrote:

> core, not the frontend.  What *does* need to be in the frontend (once
> the core is block based) is all the extra logic (for line based
> interfaces) that handles line based input - prompts, when is a block
> complete, etc.

Ah, I thought you were to allow block-based operation aside the
existing line-based stuff, as opposed to doing a wholesale
replacement. I'm not sure whether the moveover is worth the effort &
regression risk (as opposed to having parallel systems that both
work), but you have to try it out and see.

>> The ipapi.IP hacks are mostly there because of the unwillingness to
>> add to the api (especially regarding something unimportant). Frontends
>> shouldn't really need it. There is nothing hugely important that
>> mandates its use anyway, so I won't expect you to hit any problems.
>
> This one is definitely easier.  But, I think we should expand the
> ipapi interface if this is the reason we haven't.

Agreed,

>> Threaded GUI shells can probably be ignored in the future, since it's
>> questionable whether they are even required.
>
> In what sense?  Obviously, people will continue to want to use GUIs in
> conjunction with IPython, correct?

Yeah, but the current threaded shells are probably not needed. Most UI
tookits can be made to work with PyOS_InputHook, so we don't need a
different thread for ui mainloop and the raw_input.

> Nice, what do you think the best way of handling this is?  Just
> convert the ASCI colors to whatever the frontend needs?  What about

Yes (they are typically called ANSI colors btw)

> web based frontends?

They can be converted to html. That's what I do in the qt ui.

-- 
Ville M. Vainio
http://tinyurl.com/vainio



More information about the IPython-dev mailing list