1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/cli/tools
Kyle Kelley 8698e80304
refactor(jupyter): use runtimelib for Jupyter structures and directory paths (#23826)
This brings in [`runtimelib`](https://github.com/runtimed/runtimed) to
use:

## Fully typed structs for Jupyter Messages

```rust
let msg = connection.read().await?;

self
  .send_iopub(
    runtimelib::Status::busy().as_child_of(msg),
  )
  .await?;
```

## Jupyter paths

Jupyter paths are implemented in Rust, allowing the Deno kernel to be
installed completely via Deno without a requirement on Python or
Jupyter. Deno users will be able to install and use the kernel with just
VS Code or other editors that support Jupyter.

```rust
pub fn status() -> Result<(), AnyError> {
  let user_data_dir = user_data_dir()?;

  let kernel_spec_dir_path = user_data_dir.join("kernels").join("deno");
  let kernel_spec_path = kernel_spec_dir_path.join("kernel.json");

  if kernel_spec_path.exists() {
    log::info!(" Deno kernel already installed");
    Ok(())
  } else {
    log::warn!("ℹ️ Deno kernel is not yet installed, run `deno jupyter --install` to set it up");
    Ok(())
  }
}
```

Closes https://github.com/denoland/deno/issues/21619
2024-05-21 22:35:21 +02:00
..
bench fix(node): seperate worker module cache (#23634) 2024-05-16 07:09:35 +00:00
coverage fix(cli/coverage): invalid line id in html reporter (#23908) 2024-05-21 13:37:36 +02:00
init feat(init): use jsr specifier for @std/assert (#23073) 2024-03-27 18:51:52 +01:00
jupyter refactor(jupyter): use runtimelib for Jupyter structures and directory paths (#23826) 2024-05-21 22:35:21 +02:00
lint chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
registry fix(publish): always include config file when publishing (#23797) 2024-05-14 18:15:43 +00:00
repl chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
run fix(compile): relative permissions should be retained as relative (#23719) 2024-05-06 19:21:58 -04:00
test fix(node): seperate worker module cache (#23634) 2024-05-16 07:09:35 +00:00
vendor refactor(lsp): reuse CliGraphResolverOptions::sloppy_imports_resolver (#23764) 2024-05-13 17:55:31 +01:00
bundle.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
check.rs fix(check): ignore certain diagnostics in remote modules and when publishing (#23119) 2024-03-31 16:39:40 -04:00
compile.rs fix(cli): Don't panic on invalid emit options (#23463) 2024-04-23 08:50:50 -07:00
doc.rs chore: update deno_doc (#23621) 2024-05-01 00:43:24 +00:00
fmt.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
info.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
installer.rs fix(node): seperate worker module cache (#23634) 2024-05-16 07:09:35 +00:00
mod.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
task.rs fix(task): do not error if node_modules folder not exists (#23920) 2024-05-21 16:12:14 -04:00
upgrade.rs chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00