[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2020-03-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: > why a C extension apart and not a patch to `readline`? Search "python ctypes vs c extension". Multiple SO answers. I believe speed and language competancy are big factors. I don't think and stdlib modules use ctypes. --

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2020-03-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Not surprisingly, I agree with Steven that enhancing IDLE may be a better use of core developer time. It and Tkinter (and turtle) are options for the Windows and macOS (and some non-PSF) installers and easily installed on Linux. IDLE has most of the

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-11 Thread Marco Sulla
Marco Sulla added the comment: @Terry: > Jupyter Console is, I read, QT based Nope. It's shell based by default. You can open it also as a QT app, like IDLE, but by default `jupyter console` is via terminal. > they must use "‘magic’ commands" entered after the '>>>' prompt > instead of

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Stephen, I think *you* were the one over-anxious to be dismissive. In the title Marco refers to "Jupyter console (IPython)" features and in his opening, to "Jupyter console, aka IPython". Jupyter Console is, I read, QT based. IPython/Jupyter Notebooks are

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-10 Thread Marco Sulla
Marco Sulla added the comment: @Eryk: why a C extension apart and not a patch to `readline`? -- ___ Python tracker ___ ___

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-10 Thread Eryk Sun
Eryk Sun added the comment: > For example, I would be shocked if it wasn't absolutely trivial > for the current implementation to add auto-indenting following > a colon. That feature alone would be a win for usability. That would be a non-trivial change in Windows. I think it's at least

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-10 Thread Marco Sulla
Marco Sulla added the comment: Steven: currently I'm developing `frozendict` as part of CPython. About IDLE, IDLE can't be used on a server without a GUI. Furthermore, I *really* hope that IDLE is simply a GUI wrapper of REPL, with some additional features. --

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-10 Thread Marco Sulla
Marco Sulla added the comment: Well, maybe too much feature requests in a single report. I'll report them separately, with more rationale. -- ___ Python tracker ___

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: Marco: there's no need for these to be "slowly" introduced. If the features are worth having in the default REPL, they're worth having as soon as possible, without us artificially slowing the process down. It will be hard enough to get somebody willing and

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Steven D'Aprano
Steven D'Aprano added the comment: Terry, I think you were extremely over-eager, almost aggressively so, to close this feature request, especially since your reasons given are rather bogus: IPython isn't based on a GUI, it works in a text mode console too, including on Windows.

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: In interactive mode, python.exe interacts with a console/(dumb terminal) through the std streams using \n as a special character It gets input from stdin, send output to stdout or errors to stderr. The terminal, not python, handles line editing and

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core -Demos and Tools priority: normal -> low type: -> enhancement ___ Python tracker ___

[issue38747] Slowly introduce a subset of Jupyter console (IPython) features into CPython command line interactive mode

2019-11-08 Thread Marco Sulla
New submission from Marco Sulla : Sometimes I’m lazy and I would test code copy - pasted from internet or from other sources directly in the interpreter, in interactive mode. But if the code contains completely blank lines, the copy - paste fails. For example: def f(): print("Marco")