'Controlling console with requests module

Hi how to inject or add some code to console like this:

But i don't know how to do this.

Is there are someway to do it?

https://i.stack.imgur.com/IXrOD.png



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source