Closed swernli closed 3 weeks ago
There error is typo. The renderer has no been set. See npm/qsharp/ux/rederers.tsx
. When working in notebooks we need to ensure the default renderer is replaced with a call to setRenderer
.
// Default renderer to be replaced before components are first used.
// Expectation is that this will convert markdown and/or LaTeX to HTML.
let theRenderer = function (input: string): string {
const err = "ERROR: Rendered has not been set";
console.error(err);
return err + ". " + input;
};
export function setRenderer(renderer: (input: string) => string) {
theRenderer = renderer;
}
Fixed in #1957
When using the widgets to display a resource estimation result, if the checkbox for "Show detailed rows" is selected, then each of the detailed explanations' text start with "ERROR: Rendered has not been set." Not sure where exactly that's coming from, but I wonder if it is a side of effect of trying to display LaTex in the paragraphs?