Title: Terminal interface using prompt_toolkit? · Issue #8489 · ipython/ipython · GitHub
Open Graph Title: Terminal interface using prompt_toolkit? · Issue #8489 · ipython/ipython
X Title: Terminal interface using prompt_toolkit? · Issue #8489 · ipython/ipython
Description: prompt_toolkit is a pure-Python terminal interface library aimed at creating interactive consoles. ptpython is a Python console built with it, including ptipython which uses IPython internally. Unlike most terminal interface things, it a...
Open Graph Description: prompt_toolkit is a pure-Python terminal interface library aimed at creating interactive consoles. ptpython is a Python console built with it, including ptipython which uses IPython internally. Unl...
X Description: prompt_toolkit is a pure-Python terminal interface library aimed at creating interactive consoles. ptpython is a Python console built with it, including ptipython which uses IPython internally. Unl...
Opengraph URL: https://github.com/ipython/ipython/issues/8489
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Terminal interface using prompt_toolkit?","articleBody":"[prompt_toolkit](https://github.com/jonathanslenders/python-prompt-toolkit) is a pure-Python terminal interface library aimed at creating interactive consoles. [ptpython](https://github.com/jonathanslenders/ptpython/) is a Python console built with it, including `ptipython` which uses IPython internally. Unlike most terminal interface things, it also works on Windows.\n\nWe are considering switching our primary terminal interface from readline to prompt_toolkit, because:\n- readline is now rather limiting: we can't do syntax highlighting or proper multiline editing; showing tab completions permanently adds them to the terminal scrollback buffer. We can provide a much better user experience with something like prompt_toolkit.\n- Depending on readline is a pain beyond Linux: we use pyreadline on Windows, but that's essentially unmaintained and is about to break with Python 3.5. Macs ship with libedit, which is theoretically equivalent but has bugs, so we rely on the third party gnureadline package.\n\nWe'll probably need to maintain a simpler fallback mode for situations where prompt_toolkit may not work (@fperez thought ssh-ing to old servers was a likely example).\n\n@jonathanslenders : how much work do you think it would be to convert our existing readline + input() interface to prompt_toolkit? I know you've already made ptipython, and I've started having a look at that, but I'm not clear how much of that code we'd need and how much duplicates things we already do.\n","author":{"url":"https://github.com/takluyver","@type":"Person","name":"takluyver"},"datePublished":"2015-05-29T22:55:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/8489/ipython/issues/8489"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:34de7dba-78ad-a779-da3a-4413115392f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF10:1EFBF1:2F78DB:431CE1:6A4E6B06 |
| html-safe-nonce | 0da0c429858f75cca731323199b41d5d434148936c5bf6c0ccbe93ed2b957046 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjEwOjFFRkJGMToyRjc4REI6NDMxQ0UxOjZBNEU2QjA2IiwidmlzaXRvcl9pZCI6IjcwODMwNDU1MDU4MzIzMzI4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 65e18810fb159a7121756def55cb792d800721207d2184d1c59e4ecd433168ad |
| hovercard-subject-tag | issue:82619458 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ipython/ipython/8489/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b8144d3de53c03c3de50061a3dc244df792cab7c31c69a2b2c1c74ae592ab10/ipython/ipython/issues/8489 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b8144d3de53c03c3de50061a3dc244df792cab7c31c69a2b2c1c74ae592ab10/ipython/ipython/issues/8489 |
| og:image:alt | prompt_toolkit is a pure-Python terminal interface library aimed at creating interactive consoles. ptpython is a Python console built with it, including ptipython which uses IPython internally. Unl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | takluyver |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/ipython/ipython git https://github.com/ipython/ipython.git |
| octolytics-dimension-user_id | 230453 |
| octolytics-dimension-user_login | ipython |
| octolytics-dimension-repository_id | 658518 |
| octolytics-dimension-repository_nwo | ipython/ipython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 658518 |
| octolytics-dimension-repository_network_root_nwo | ipython/ipython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width