summaryrefslogtreecommitdiff
path: root/cli/tools/jupyter
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/jupyter')
-rw-r--r--cli/tools/jupyter/install.rs4
-rw-r--r--cli/tools/jupyter/mod.rs11
2 files changed, 7 insertions, 8 deletions
diff --git a/cli/tools/jupyter/install.rs b/cli/tools/jupyter/install.rs
index 3b2079db0..0c9b8b3e6 100644
--- a/cli/tools/jupyter/install.rs
+++ b/cli/tools/jupyter/install.rs
@@ -33,7 +33,7 @@ pub fn status() -> Result<(), AnyError> {
}
}
- println!("ℹ️ Deno kernel is not yet installed, run `deno jupyter --unstable --install` to set it up");
+ println!("ℹ️ Deno kernel is not yet installed, run `deno jupyter --install` to set it up");
Ok(())
}
@@ -56,7 +56,7 @@ pub fn install() -> Result<(), AnyError> {
// https://jupyter-client.readthedocs.io/en/stable/kernels.html#kernel-specs
// FIXME(bartlomieju): replace `current_exe` before landing?
let json_data = json!({
- "argv": [current_exe().unwrap().to_string_lossy(), "--unstable", "jupyter", "--kernel", "--conn", "{connection_file}"],
+ "argv": [current_exe().unwrap().to_string_lossy(), "jupyter", "--kernel", "--conn", "{connection_file}"],
"display_name": "Deno",
"language": "typescript",
});
diff --git a/cli/tools/jupyter/mod.rs b/cli/tools/jupyter/mod.rs
index bb8b045ed..c74b29586 100644
--- a/cli/tools/jupyter/mod.rs
+++ b/cli/tools/jupyter/mod.rs
@@ -13,6 +13,7 @@ use deno_core::located_script_name;
use deno_core::resolve_url_or_path;
use deno_core::serde::Deserialize;
use deno_core::serde_json;
+use deno_runtime::colors;
use deno_runtime::deno_io::Stdio;
use deno_runtime::deno_io::StdioPipe;
use deno_runtime::permissions::Permissions;
@@ -33,12 +34,10 @@ pub async fn kernel(
flags: Flags,
jupyter_flags: JupyterFlags,
) -> Result<(), AnyError> {
- if !flags.unstable {
- eprintln!(
- "Unstable subcommand 'deno jupyter'. The --unstable flag must be provided."
- );
- std::process::exit(70);
- }
+ log::info!(
+ "{} \"deno jupyter\" is unstable and might change in the future.",
+ colors::yellow("Warning"),
+ );
if !jupyter_flags.install && !jupyter_flags.kernel {
install::status()?;