code: def add_to_recent(self, notebook):
          
          if notebook not in self.recent_notebooks:
              self.recent_notebooks.insert(0, notebook)
              self.recent_notebooks = self.recent_notebooks[:20]
docs: Add an entry to recent notebooks.
  
          We only maintain the list of the 20 most recent notebooks.