mirror of
https://github.com/denoland/deno.git
synced 2024-12-03 17:08:35 -05:00
46a4bd5178
Closes https://github.com/denoland/deno/issues/20591 --------- Co-authored-by: Kyle Kelley <rgbkrk@gmail.com>
16 lines
445 B
JavaScript
16 lines
445 B
JavaScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
const core = globalThis.Deno.core;
|
|
const internals = globalThis.__bootstrap.internals;
|
|
|
|
import { denoNsUnstable } from "ext:runtime/90_deno_ns.js";
|
|
|
|
function enableJupyter() {
|
|
denoNsUnstable.jupyter = {
|
|
async broadcast(msgType, content) {
|
|
await core.opAsync("op_jupyter_broadcast", msgType, content);
|
|
},
|
|
};
|
|
}
|
|
|
|
internals.enableJupyter = enableJupyter;
|