Beispiel #1
0
        public async Task Load_and_render_notebook()
        {
            var notebookJsonString = Encoding.UTF8.GetString(Resources.neural_cue_combination);
            var notebook           = TelescopeConverter.Deserialize <Notebook>(notebookJsonString);

            _ = notebook.ToHtml();
        }
Beispiel #2
0
        static async Task Main(string[] args)
        {
            var notebookJsonString = Encoding.UTF8.GetString(Resources.neural_cue_combination);
            var notebook           = TelescopeConverter.Deserialize <Notebook>(notebookJsonString);
            var htmlNotebook       = notebook.ToHtml();

            htmlNotebook = $"{HTMLHeaderHelper.Header}{htmlNotebook}{HTMLHeaderHelper.Footer}";
            var tempFile = Path.Combine(Path.GetTempPath(), $"temp_{Guid.NewGuid()}.html");
            await File.WriteAllTextAsync(tempFile, htmlNotebook);

            Process.Start(@"cmd.exe ", $@"/c {tempFile}");
        }