#NEWLINE# def _show_interpreter_prompt_for_reply( self , msg ) : #NEWLINE# #INDENT# ' Reimplemented for IPython-style prompts.\n        ' #NEWLINE# content = msg [ 'content' ] #NEWLINE# previous_prompt_number = content [ 'execution_count' ] #NEWLINE# if ( self . _previous_prompt_obj and ( self . _previous_prompt_obj . number != previous_prompt_number ) ) : #NEWLINE# #INDENT# block = self . _previous_prompt_obj . block #NEWLINE# if ( block . isValid ( ) and block . text ( ) ) : #NEWLINE# #INDENT# cursor = QtGui . QTextCursor ( block ) #NEWLINE# cursor . movePosition ( QtGui . QTextCursor . Right , QtGui . QTextCursor . KeepAnchor , self . _previous_prompt_obj . length ) #NEWLINE# prompt = self . _make_in_prompt ( block ) #NEWLINE# self . _prompt = self . _insert_html_fetching_plain_text ( cursor , prompt ) #NEWLINE# self . _highlighter . rehighlightBlock ( cursor . block ( ) ) #NEWLINE# #UNINDENT# self . _previous_prompt_obj = None #NEWLINE# #UNINDENT# self . _show_interpreter_prompt ( ( previous_prompt_number + 1 ) )