Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I clear screen in IronPython console?

When we work with a regular Windows command prompt we can clear the screen by typing cls command.

How I can do the same in IronPython console (ipy)?

like image 981
Vadim Avatar asked Feb 22 '26 08:02

Vadim


2 Answers

import System.Console
System.Console.Clear()
like image 188
Cat Plus Plus Avatar answered Feb 24 '26 05:02

Cat Plus Plus


Use ! to run a shell command:

!clear 
!cls
like image 44
eflanigan00 Avatar answered Feb 24 '26 03:02

eflanigan00