summaryrefslogtreecommitdiff
path: root/cli/tools/jupyter/mod.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-18 23:16:14 +0100
committerGitHub <noreply@github.com>2024-01-18 23:16:14 +0100
commit88bc57d7643b4306d13cae72830a900cd81d1549 (patch)
tree97aedb550deed594be86717276332f4a7f91156b /cli/tools/jupyter/mod.rs
parent35c1652f56f2a83380080b2c9942c595f80bd14d (diff)
feat(jupyter): don't require --unstable flag (#21963)
This commit removes the requirement for `--unstable` flag in `deno jupyter` subcommand. The process will no longer exit if this flag is not provided, however the subcommand itself is still considered unstable and might change in the future. Required for https://github.com/denoland/deno/pull/21452
Diffstat (limited to 'cli/tools/jupyter/mod.rs')
-rw-r--r--cli/tools/jupyter/mod.rs11
1 files changed, 5 insertions, 6 deletions
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()?;