From f00f0f92983d6966a5b97e539ec3f3407c3d851f Mon Sep 17 00:00:00 2001 From: Zander Hill Date: Thu, 4 Jul 2024 15:12:14 -0700 Subject: feat(jupyter): support `confirm` and `prompt` in notebooks (#23592) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://github.com/denoland/deno/issues/22633 This commit adds support for `confirm` and `prompt` APIs, that instead of reading from stdin are using notebook frontend to show modal boxes and wait for answers. --------- Co-authored-by: Bartek IwaƄczuk --- cli/tools/jupyter/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/tools/jupyter/mod.rs') diff --git a/cli/tools/jupyter/mod.rs b/cli/tools/jupyter/mod.rs index a5139044f..1197d3df7 100644 --- a/cli/tools/jupyter/mod.rs +++ b/cli/tools/jupyter/mod.rs @@ -179,6 +179,7 @@ pub async fn kernel( let mut op_state = op_state_rc.borrow_mut(); op_state.put(startup_data.iopub_connection.clone()); op_state.put(startup_data.last_execution_request.clone()); + op_state.put(startup_data.stdin_connection_proxy.clone()); } repl_session_proxy.start().await; -- cgit v1.2.3