summaryrefslogtreecommitdiff
path: root/cli/js/40_jupyter.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/40_jupyter.js')
-rw-r--r--cli/js/40_jupyter.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/js/40_jupyter.js b/cli/js/40_jupyter.js
index 8cdf0789a..ae257f1c1 100644
--- a/cli/js/40_jupyter.js
+++ b/cli/js/40_jupyter.js
@@ -3,12 +3,14 @@
const core = globalThis.Deno.core;
const internals = globalThis.__bootstrap.internals;
-import { denoNsUnstable } from "ext:runtime/90_deno_ns.js";
-
function enableJupyter() {
- denoNsUnstable.jupyter = {
+ const {
+ op_jupyter_broadcast,
+ } = core.ensureFastOps();
+
+ globalThis.Deno.jupyter = {
async broadcast(msgType, content) {
- await core.opAsync("op_jupyter_broadcast", msgType, content);
+ await op_jupyter_broadcast(msgType, content);
},
};
}