//using PolyglotKernel = Microsoft.DotNet.Interactive.Kernel;
//using Microsoft.DotNet.Interactive.Commands;

//public static class PolyglotHelper
//{

//    public static Task AddMarkdownCellAsync(string markdown)
//        => AddCodeCellAsync("markdown", markdown);

//    public static Task AddMermaidCellAsync(string mermaidCode)
//        => AddCodeCellAsync("mermaid", mermaidCode);
//    public static async Task AddCodeCellAsync(string codeLanguage, string code)
//    {
//        var command = new SendEditableCode(codeLanguage, code);
//        await PolyglotKernel.Root.SendAsync(command);
//    }

//    public static async Task<T> ReadConsoleInputAsync<T>(string prompt)
//    {
//        var input = await PolyglotKernel.GetInputAsync(prompt);
//        return (T)Convert.ChangeType(input, typeof(T));
//    }

//}