Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _save_notebook(self, model, path):
nb_contents = from_dict(model["content"])
self.check_and_sign(nb_contents, path)
file_contents = json.dumps(model["content"])
self.fs.write(path, file_contents)
self.validate_notebook_model(model)
return model.get("message")