public static T UseSandDanceExplorer <T>(this T kernel, string uri = null, string libraryVersion = null, string cacheBuster = null) where T : Kernel
 {
     SandDanceDataExplorer.RegisterFormatters();
     SandDanceDataExplorer.SetDefaultConfiguration(string.IsNullOrWhiteSpace(uri) ? null : new Uri(uri), libraryVersion,
                                                   cacheBuster);
     return(kernel);
 }
        private static HtmlString RenderSandDanceExplorer(this SandDanceDataExplorer explorer, Uri uri, string context, string cacheBuster)
        {
            var explorerId = explorer.Id;
            var data       = explorer.TabularDataResource.ToJson();
            var divId      = explorerId;
            var code       = new StringBuilder();

            code.AppendLine("<div style=\"background-color:white;\">");
            code.AppendLine($"<div id=\"{divId}\" style=\"height: 100ch ;margin: 2px;\">");
            code.AppendLine("</div>");
            code.AppendLine(@"<script type=""text/javascript"">");
            GenerateCode(data, code, divId, "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js", uri, context, cacheBuster);
            code.AppendLine(" </script>");
            code.AppendLine("</div>");
            return(new HtmlString(code.ToString()));
        }