diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/editor.py
+++ b/spyderlib/widgets/editor.py
@@ -1940,7 +1940,8 @@ class EditorStack(QWidget):
     def run_cell(self, focus_to_editor=False):

         """Run current cell"""

         text = self.get_current_editor().get_cell_as_executable_code()

-        if text:

+        finfo = self.get_current_finfo()

+        if finfo.editor.is_python() and text:

             self.emit(SIGNAL('exec_in_extconsole(QString,bool)'),

                       text, focus_to_editor)
Run cells *only* if the currently focused file is a Python one

Update Issue <I>
Status: Started