diff --git a/mercury/apps/nbworker/__main__.py b/mercury/apps/nbworker/__main__.py index 34608602..5134382f 100644 --- a/mercury/apps/nbworker/__main__.py +++ b/mercury/apps/nbworker/__main__.py @@ -48,6 +48,9 @@ server_url = sys.argv[4] +if os.environ.get("MERCURY_SERVER_URL") is None: + os.environ["MERCURY_SERVER_URL"] = server_url.replace("ws://", "http://").replace("wss://", "https://") + def signal_handler(signal, frame): global stop_event log.debug("\nBye bye!")