I inserted couple commands in python interpreter and want to see whole history after re-enter in interpreter shell. How caan I do it?
For example:
$ python
Python 3.7.1 (default, Jul 14 2021, 18:08:28)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print('hello')
>>> print('world')
>>> exit()
And after re-enter insert something like history
and be able to see inserted below commands
$ python
Python 3.7.1 (default, Jul 14 2021, 18:08:28)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> {some_history_like_command}
print('hello')
print('world')
exit()
>>>