Skip to content

Use ipython as an internal shell? #618

Answered by inducer
jgarte asked this question in Q&A
Discussion options

You must be logged in to vote

Think of Urwid as something that allows its user to think about nice abstract things like "Window" and "text entry box" and "key event" and then talks the required ANSI escape sequence gobbledygook to the terminal.

The problem here is that both Urwid and IPython by default talk ANSI escape sequences to the terminal. Without some sort of integration, IPython will assume it owns the whole screen and trample over the output lovingly created by Urwid. IPython can be taught to respect other UI toolkits, as evidenced by ptipython (that's prompt-toolkit-ipython). I don't know exactly how much work is involved to do that, but that might be a good place to look for an example of how to teach ipyth…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cohml
Comment options

@inducer
Comment options

Answer selected by jgarte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants