kalawati — 2012-10-02T04:20:56-04:00 — #1
I am new to python... can anyone help me to use function how to clear python Shell... like using function system("cls") or clrscr()....
kylewolfe — 2012-10-02T11:53:18-04:00 — #2
boltronics — 2013-03-04T19:02:44-05:00 — #3
I'm on a GNU/Linux system.
is one way to do it here, but let's face it - that's way too much typing just to clear the screen on occasion, so I just press Ctrl+L.
This works fine when running python interactively, using ipython, and in many other applications that can be run from within a *NIX terminal emulator. It probably won't work with IDLE, since that's a Tk app.
stomme_poes — 2013-03-08T17:21:01-05:00 — #4
Hell I just use it for quickie testing of something, so I ctrl-d and then usually close that terminal window
kylewolfe — 2013-03-08T18:15:10-05:00 — #5
That is a bit much typing for my taste
sqlprogrammers — 2014-06-10T09:58:41-04:00 — #6
If you are using python IDE in the windows os.system('CLS') this code might help you to achieve the task.
AS the linux is concerned the import os os.system('clear') can be used.