mirror of
https://github.com/denoland/deno.git
synced 2024-12-01 16:51:13 -05:00
18 lines
434 B
JavaScript
18 lines
434 B
JavaScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
const core = globalThis.Deno.core;
|
|
const internals = globalThis.__bootstrap.internals;
|
|
|
|
function enableJupyter() {
|
|
const {
|
|
op_jupyter_broadcast,
|
|
} = core.ensureFastOps();
|
|
|
|
globalThis.Deno.jupyter = {
|
|
async broadcast(msgType, content) {
|
|
await op_jupyter_broadcast(msgType, content);
|
|
},
|
|
};
|
|
}
|
|
|
|
internals.enableJupyter = enableJupyter;
|