Skip to content

Instantly share code, notes, and snippets.

@tubaman
Created September 28, 2024 13:16
Show Gist options
  • Save tubaman/72ecf37ce6f818b66348015eb4b218bd to your computer and use it in GitHub Desktop.
Save tubaman/72ecf37ce6f818b66348015eb4b218bd to your computer and use it in GitHub Desktop.
AnyWidget prototype of pyodide-worker to main thread RPC
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
export function render({model, el}) {
model.on("change:request", () => {
//btn.innerHTML = `count is ${count()}`;
console.log("calling " + window.GM.info);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment