how to make pycharm works like spyder
The pycharm works great, just I need one thing like spyder.
In spyder, after run the code, the console still opens and something imported or variables can be viewed there. More importantly, the code can setup the environment and I can run other codes without setup everything.
However, pycharm runs code in a console which I can't input, and after running the code, this console ends, meaning the environment is cleared. I have to setup everything in each python file again, it takes time.
So how can I keep pycharm running code in a same interactive console when I hit run button each time like spyder?
In spyder, after run the code, the console still opens and something imported or variables can be viewed there. More importantly, the code can setup the environment and I can run other codes without setup everything.
However, pycharm runs code in a console which I can't input, and after running the code, this console ends, meaning the environment is cleared. I have to setup everything in each python file again, it takes time.
So how can I keep pycharm running code in a same interactive console when I hit run button each time like spyder?
请先登录再写评论。
select code and right mouse click → Execute selection in python console