diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -1232,6 +1232,7 @@ class MainWindow(QMainWindow):
                 plugin.dockwidget.raise_()

 

         # Hide Python console until we remove it

+        self.extconsole.close_console()

         self.extconsole.toggle_view_action.setChecked(False)

 

         # Show history file if no console is visible

diff --git a/spyder/plugins/externalconsole.py b/spyder/plugins/externalconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/externalconsole.py
+++ b/spyder/plugins/externalconsole.py
@@ -888,9 +888,8 @@ class ExternalConsole(SpyderPluginWidget):
                 if isinstance(sw, pythonshell.ExternalPythonShell):

                     consoles = True

                     break

-            # Don't create consoles by default

-            #if not consoles:

-            #    self.open_interpreter()

+            if not consoles:

+                self.open_interpreter()

         else:

             self.dockwidget.hide()
Python console: Fix error while creating history log file at startup