Python IDLE execution in shell, text-based tool such as linux terminal or windows powershell.

When you are using text-based system such as linux terminal or windows dos (or powerhsell), you may want open file of  python (blahblah.py) through IDLE.

In this case, you can use below commands

If python path is here

C:\Python27\

In order to open IDLE, you have to open using pythonw.exe

So you can do like this.

C:\Python27\pythonw.exe C:\Python27\Lib\idlelib\idle.py .\blahblah.py

Thanks!
Have fun!

댓글

이 블로그의 인기 게시물

미국 포닥, 한국으로 돌아가는 이유? (Why do postdoc go back to Korea?)

미국 포닥 - 비지팅 포닥 VS 풀펀딩 포닥 (Visiting Scholar VS Postdoctoral Fellow)

미국 포닥 직위, 타이틀, 명칭? - Visiting Scholar, Postdoctoral Fellow, Research Associate, Research Scientist, Research Professor