예제 #1
0
        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));
            }
        }
예제 #2
0
 private async Task <InteractiveDocument> ReadDibAsync(string notebookName)
 {
     return(await NotebookLessonParser.ReadFileAsInteractiveDocument(new FileInfo(GetPatchedNotebookPath(notebookName))));
 }