From 61b23a9a700b2efbe5f0a68dc6b39d5855fb26c4 Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Sun, 11 Aug 2019 15:18:01 -0700 Subject: [PATCH] Don't stop Jupyter notebook in ray stop. (#5387) --- python/ray/scripts/scripts.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 460f598a0..1e8a5c7c2 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -410,20 +410,6 @@ def stop(): "' | grep -v grep | " + "awk '{ print $2 }') 2> /dev/null") subprocess.call([command], shell=True) - # Find the PID of the jupyter process and kill it. - try: - from notebook.notebookapp import list_running_servers - pids = [ - str(server["pid"]) for server in list_running_servers() - if "/tmp/ray" in server["notebook_dir"] - ] - subprocess.call( - ["kill -9 {} 2> /dev/null".format(" ".join(pids))], shell=True) - except ImportError: - pass - except Exception: - logger.exception("Error shutting down jupyter") - @cli.command() @click.argument("cluster_config_file", required=True, type=str)