Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
function Deno.jupyter.broadcast
Unstable

Broadcast a message on IO pub channel.

await Deno.jupyter.broadcast("display_data", {
  data: { "text/html": "<b>Processing.</b>" },
  metadata: {},
  transient: { display_id: "progress" }
});

await new Promise((resolve) => setTimeout(resolve, 500));

await Deno.jupyter.broadcast("update_display_data", {
  data: { "text/html": "<b>Processing..</b>" },
  metadata: {},
  transient: { display_id: "progress" }
});

Parameters

msgType: string
content: Record<string, unknown>
optional
extra: { metadata?: Record<string, unknown>; buffers?: Uint8Array[]; }

Returns

Promise<void>