private async Task RunAllCells(FileInfo file, CompositeKernel kernel) { var notebook = await NotebookLessonParser.ReadFileAsInteractiveDocument(file, kernel); foreach (var cell in notebook.Elements.Where(e => e.Language != "markdown")) { await kernel.SendAsync(new SubmitCode(cell.Contents, cell.Language)); } }
private async Task <InteractiveDocument> ReadDibAsync(string notebookName) { return(await NotebookLessonParser.ReadFileAsInteractiveDocument(new FileInfo(GetPatchedNotebookPath(notebookName)))); }