Skip to content

Commit

Permalink
Merge pull request #125 from dalthviz/fixes_issue_118
Browse files Browse the repository at this point in the history
PR: Open a 'welcome' tab if there are no open tabs
  • Loading branch information
ccordoba12 authored Oct 15, 2017
2 parents 7f5c8cb + 176f1aa commit 25582a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spyder_notebook/notebookplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ def close_client(self, index=None, client=None, save=False):
self.tabwidget.removeTab(self.tabwidget.indexOf(client))
self.clients.remove(client)

self.create_welcome_client()

def create_welcome_client(self):
"""Create a welcome client with some instructions."""
if self.tabwidget.count() == 0:
Expand Down

0 comments on commit 25582a8

Please sign in to comment.