##// END OF EJS Templates
Moving magic_cls to TerminalInteractiveShell.
Jörgen Stenarson -
Show More
@@ -3611,11 +3611,4 b' Defaulting color scheme to \'NoColor\'"""'
3611 3611 with open(new_fname, 'w') as f:
3612 3612 current.write(nb, f, new_format)
3613 3613
3614 if sys.platform == 'win32':
3615 def magic_cls(self, s):
3616 """Clear screen.
3617 """
3618 os.system("cls")
3619
3620
3621 3614 # end Magic
@@ -608,6 +608,12 b' class TerminalInteractiveShell(InteractiveShell):'
608 608
609 609 self._execute_block(block, par)
610 610
611 if sys.platform == 'win32':
612 def magic_cls(self, s):
613 """Clear screen.
614 """
615 os.system("cls")
616
611 617 def showindentationerror(self):
612 618 super(TerminalInteractiveShell, self).showindentationerror()
613 619 print("If you want to paste code into IPython, try the %paste magic function.")
General Comments 0
You need to be logged in to leave comments. Login now