environment/lib/python2.7/site-packages/IPython/frontend/qt/console/ipython_widget.py
def _show_interpreter_prompt(self, number=None):
        """ Reimplemented for IPython-style prompts.
        """
        # If a number was not specified, make a prompt number request.
        if number is None:
            msg_id = self.kernel_manager.shell_channel.execute('', silent=True)
            info = self._ExecutionRequest(msg_id, 'prompt')
            self._request_info['execute'][msg_id] = info
            return

        # Show a new prompt and save information about it so that it can be
        # updated later if the prompt number turns out to be wrong.
        self._prompt_sep = self.input_sep
        self._show_prompt(self._make_in_prompt(number), html=True)
        block = self._control.document().lastBlock()
        length = len(self._prompt)
        self._previous_prompt_obj = self._PromptBlock(block, length, number)

        # Update continuation prompt to reflect (possibly) new prompt length.
        self._set_continuation_prompt(
            self._make_continuation_prompt(self._prompt), html=True)
def _show_interpreter_prompt(self, number=None):
        """ Reimplemented for IPython-style prompts.
        """
        # If a number was not specified, make a prompt number request.
        if number is None:
            msg_id = self.kernel_manager.shell_channel.execute('', silent=True)
            info = self._ExecutionRequest(msg_id, 'prompt')
            self._request_info['execute'][msg_id] = info
            return

        # Show a new prompt and save information about it so that it can be
        # updated later if the prompt number turns out to be wrong.
        self._prompt_sep = self.input_sep
        self._show_prompt(self._make_in_prompt(number), html=True)
        block = self._control.document().lastBlock()
        length = len(self._prompt)
        self._previous_prompt_obj = self._PromptBlock(block, length, number)

        # Update continuation prompt to reflect (possibly) new prompt length.
        self._set_continuation_prompt(
            self._make_continuation_prompt(self._prompt), html=True)
def _show_interpreter_prompt ( self , number = None ) : # If a number was not specified, make a prompt number request. if number is None : msg_id = self . kernel_manager . shell_channel . execute ( '' , silent = True ) info = self . _ExecutionRequest ( msg_id , 'prompt' ) self . _request_info [ 'execute' ] [ msg_id ] = info return # Show a new prompt and save information about it so that it can be # updated later if the prompt number turns out to be wrong. self . _prompt_sep = self . input_sep self . _show_prompt ( self . _make_in_prompt ( number ) , html = True ) block = self . _control . document ( ) . lastBlock ( ) length = len ( self . _prompt ) self . _previous_prompt_obj = self . _PromptBlock ( block , length , number ) # Update continuation prompt to reflect (possibly) new prompt length. self . _set_continuation_prompt ( self . _make_continuation_prompt ( self . _prompt ) , html = True )
Reimplemented for IPython-style prompts.
Reimplemented for IPython - style prompts .