##// END OF EJS Templates
DEV: More checkpoint API refactoring....
DEV: More checkpoint API refactoring. Changed the public checkpoint API to: - `create_checkpoint(self, nb, path)` - `get_checkpoint_content(self, checkpoint_id, path)` - `rename_checkpoint(self, checkpoint_id, old_path, new_path)` - `delete_checkpoint(self, checkpoint_id, path)` - `list_checkpoints(self, path)` All paths in the above are API-style paths, and the `nb` argument to `create_checkpoint` is a dictionary suitable for passing to `nbformat.write`. The new `get_checkpoint_content` method returns an unvalidated notebook content dictionary. It is used by `ContentManager.restore_checkpoint` to load content to be written via `save`.

File last commit:

r19571:4aa90a90
r19747:4b186626
Show More
manager.py
14 lines | 434 B | text/x-python | PythonLexer
"""Manager to read and modify frontend config data in JSON files.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import os
from IPython.config.manager import BaseJSONConfigManager
class ConfigManager(BaseJSONConfigManager):
"""Config Manager use for storin Javascript side config"""
def _config_dir(self):
return os.path.join(self.profile_dir, 'nbconfig')