def create_notebook(self, model=None, path='<STR_LIT>'):
path = path.strip('<STR_LIT:/>')<EOL>if model is None:<EOL><INDENT>model = {}<EOL><DEDENT>if '<STR_LIT:content>' not in model:<EOL><INDENT>metadata = current.new_metadata(name=u'<STR_LIT>')<EOL>model['<STR_LIT:content>'] = current.new_notebook(metadata=metadata)<EOL><DEDENT>if '<STR_LIT:name>' not in model:<EOL><INDENT>model['<STR_LIT:name>'] = self.increment_filename('<STR_LIT>', path)<EOL><DEDENT>model['<STR_LIT:path>'] = path<EOL>model['<STR_LIT:type>'] = '<STR_LIT>'<EOL>model = self.save_notebook(model, model['<STR_LIT:name>'], model['<STR_LIT:path>'])<EOL>return model<EOL>
Create a new notebook and return its model with no content.