I have been writing scripts in Python console provided in Pycharm but now I need to save them on my desktop and run them at some later point. I can not happen to find any option to do so for the console scripts.
Asked
Active
Viewed 1,797 times
2
-
1Just save and run with `python
.py`... – Andrew Li Sep 09 '16 at 05:14 -
I don't follow you. What exactly are you asking how to do? – Christian Dean Sep 09 '16 at 05:37
-
I can easily save files and programs in the python project but when I do not find the option to lines that I write in the console in the format of a python program – Aditya Kumar Gupta Sep 09 '16 at 06:10
-
1This answer might be related to your question: http://stackoverflow.com/questions/947810/how-to-save-a-python-interactive-session – daladier Sep 09 '16 at 08:22
1 Answers
0
I don't think there is a way to save the contents of a console session within PyCharm (or any other editor that I know of). As @daladier pointed out in the comments, though, iPython may be what you are looking for. Using Jupyter Notebooks which are based on iPython you can create interactive cells in notebooks that behave similar to the console.

Ian
- 1,688
- 18
- 35