You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand current implementation of history is by lines only; same as in bash or python REPL; but came from python world, I usually use ipython (which is a 3rd party pip package) instead of the default python shell that provides additional features like history persistence, and this nice feature: multi lines editing in history
if node doesn't want to improve its default REPL shell line editing experience, I would wish this nice feature can be done by some 3rd party project like this Node Enhanced Shell, or by a plugin
➸ ~/.local/bin/ipythonPython 2.7.10 (default, Oct 14 2015, 16:09:02) Type "copyright", "credits" or "license" for more information.IPython 4.1.1 -- An enhanced Interactive Python.? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.object? -> Details about 'object', use 'object??' for extra details.In [1]: def fibonacci(n): ...: a, b = 1, 1 ...: while a < n: ...: a, b = a+b, a ...: return a ...: In [2]: fibonacci(3)Out[2]: 3In [3]: fibonacci(4)Out[3]: 5In [4]: fibonacci(18)Out[4]: 21In [5]: def fibonacci(n): <= here is brought by arrow up key, it can find back multi lines for editing a, b = 1, 1 while a < n: a, b = a+b, a return a
The text was updated successfully, but these errors were encountered:
I understand current implementation of history is by lines only; same as in bash or python REPL; but came from python world, I usually use ipython (which is a 3rd party pip package) instead of the default python shell that provides additional features like history persistence, and this nice feature: multi lines editing in history
if node doesn't want to improve its default REPL shell line editing experience, I would wish this nice feature can be done by some 3rd party project like this Node Enhanced Shell, or by a plugin
The text was updated successfully, but these errors were encountered: