Skip to content

Instantly share code, notes, and snippets.

View avalanchy's full-sized avatar

Mariusz Osiecki avalanchy

View GitHub Profile
@avalanchy
avalanchy / clear.py
Last active August 29, 2015 13:57 — forked from mildsunrise/clear.py
How to clear python interpreter console?
import os
import subprocess
if os.name in ('ce', 'nt', 'dos'):
def clear():
subprocess.call('cls', shell=True)
elif 'posix' in os.name:
def clear():