parameters: (self, model)
return_statement: return model
docstring: Add failed-validation message to model
docstring_summary: Add failed-validation message to model
docstring_tokens: Add failed - validation message to model
function: def validate_notebook_model(self, model):
          """Add failed-validation message to model"""
          try:
              validate_nb(model['content'])
          except ValidationError as e:
              model['message'] = u'Notebook validation failed: {}:\n{}'.format(
                  e.message, json.dumps(e.instance, indent=1, default=lambda obj: '<UNKNOWN>'),
              )
          return model
function_tokens: def validate_notebook_model ( self , model ) : try : validate_nb ( model [ 'content' ] ) except ValidationError as e : model [ 'message' ] = u'Notebook validation failed: {}:\n{}' . format ( e . message , json . dumps ( e . instance , indent = 1 , default = lambda obj : '<UNKNOWN>' ) , ) return model