##// END OF EJS Templates
Define generic sys.ps{1,2,3}, for use by scripts....
Bradley M. Froehle -
Show More
@@ -637,6 +637,11 b' class InteractiveShell(SingletonConfigurable, Magic):'
637 def init_prompts(self):
637 def init_prompts(self):
638 self.prompt_manager = PromptManager(shell=self, config=self.config)
638 self.prompt_manager = PromptManager(shell=self, config=self.config)
639 self.configurables.append(self.prompt_manager)
639 self.configurables.append(self.prompt_manager)
640 # Set system prompts, so that scripts can decide if they are running
641 # interactively.
642 sys.ps1 = 'In : '
643 sys.ps2 = '...: '
644 sys.ps3 = 'Out: '
640
645
641 def init_display_formatter(self):
646 def init_display_formatter(self):
642 self.display_formatter = DisplayFormatter(config=self.config)
647 self.display_formatter = DisplayFormatter(config=self.config)
General Comments 0
You need to be logged in to leave comments. Login now