Save library to disk
(self)
| 48 | self._save_library() |
| 49 | |
| 50 | def _save_library(self): |
| 51 | """Save library to disk""" |
| 52 | try: |
| 53 | data = { |
| 54 | 'notebooks': self.notebooks, |
| 55 | 'active_notebook_id': self.active_notebook_id, |
| 56 | 'updated_at': datetime.now().isoformat() |
| 57 | } |
| 58 | with open(self.library_file, 'w') as f: |
| 59 | json.dump(data, f, indent=2) |
| 60 | except Exception as e: |
| 61 | print(f"❌ Error saving library: {e}") |
| 62 | |
| 63 | def add_notebook( |
| 64 | self, |
no outgoing calls
no test coverage detected