-
In PyCharm, how to load code from the editor to console카테고리 없음 2017. 7. 22. 20:05
While I was running the code form the Problem Solving with Algorithms and Data Structures, I've encountered some pages to encourage write class codes in code editor window but running it from Python console, for example in chapter 7.6. I did not know how I can load the class code from editor in console window. After searching from the web, I found this page.
Loading Code from Editor into Console
https://www.jetbrains.com/help/pycharm/loading-code-from-editor-into-console.html
So, to do what you want, just select the class code in editor window and right click and click "Execute selection in console". Then you can use the class you want in the console window.