'Run current cell'

def run_cell(self):

    text = self.get_current_editor().get_cell_as_executable_code()
    finfo = self.get_current_finfo()
    if (finfo.editor.is_python() and text):
        self.exec_in_extconsole.emit(text, self.focus_to_editor)
