Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
["metadata", "kernelspec", "name"],
"python2"
);
if (config) {
if (config.codeCellCount) {
for (let i = 1; i < config.codeCellCount; i++) {
notebook = appendCellToNotebook(notebook, emptyCodeCell);
}
}
if (config.markdownCellCount) {
for (let i = 0; i < config.markdownCellCount; i++) {
notebook = appendCellToNotebook(
notebook,
emptyMarkdownCell.set("cell_type", "markdown")
);
}
}
if (config.hideAll) {
notebook = hideCells(notebook);
}
}
return notebook;
}