##// 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 with open(new_fname, 'w') as f:
3611 with open(new_fname, 'w') as f:
3612 current.write(nb, f, new_format)
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 # end Magic
3614 # end Magic
@@ -608,6 +608,12 b' class TerminalInteractiveShell(InteractiveShell):'
608
608
609 self._execute_block(block, par)
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 def showindentationerror(self):
617 def showindentationerror(self):
612 super(TerminalInteractiveShell, self).showindentationerror()
618 super(TerminalInteractiveShell, self).showindentationerror()
613 print("If you want to paste code into IPython, try the %paste magic function.")
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