diff options
author | Zander Hill <zander@xargs.io> | 2024-07-04 15:12:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 22:12:14 +0000 |
commit | f00f0f92983d6966a5b97e539ec3f3407c3d851f (patch) | |
tree | 73966bbfbd836dd3dd36ff22647c97d0f839baed /cli/tools/jupyter/mod.rs | |
parent | 96b527b8df3c9e7e29c98a6a0d6876089b88bc09 (diff) |
feat(jupyter): support `confirm` and `prompt` in notebooks (#23592)
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 <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tools/jupyter/mod.rs')
-rw-r--r-- | cli/tools/jupyter/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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; |