Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::kernel::core::interpreter::Interpreter::generate_prompt (   self,
  is_continuation 
)

Calculate and return a string with the prompt to display.

:Parameters:
  is_continuation : bool
    Whether the input line is continuing multiline input or not, so
  that a proper continuation prompt can be computed.

Definition at line 318 of file interpreter.py.

00318                                               :
        """Calculate and return a string with the prompt to display.

        :Parameters:
          is_continuation : bool
            Whether the input line is continuing multiline input or not, so
          that a proper continuation prompt can be computed."""
        
        if is_continuation:
            return str(self.outputcache.prompt2)
        else:
            return str(self.outputcache.prompt1)

    def execute_python(self, python):


Generated by  Doxygen 1.6.0   Back to index