I want my python interactive console in terminal to work like the one in pycharm or something like jupyter notebook but I can't find how.
For example when I do:
>>> def foo(): ... print('Make it work nice') ... >>>
And then I press up arrow I want to see something like this:
>>> def foo(): ... print('Make it work nice') ...
Where I can edit both lines. but I get only this:
>>> print('Make it work nice')
So is it possible to make it work as I want and if not is there any extremely lightweight tool(something smaller than an IDE or Browser. something as heavy as VIM for example)