Skip to content

Instantly share code, notes, and snippets.

@ldrewniak
Created November 5, 2019 14:08
Show Gist options
  • Save ldrewniak/e504bd557f50b74921f819a6347bec8c to your computer and use it in GitHub Desktop.
Save ldrewniak/e504bd557f50b74921f819a6347bec8c to your computer and use it in GitHub Desktop.
import os
from subprocess import Popen
import webbrowser
import time
mlflow_port = 5002
Popen(f"cmd /c mlflow ui --port={mlflow_port}", shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
# give a sec till this start-up
time.sleep(1)
webbrowser.open(f"http://kubernetes.docker.internal:{mlflow_port}")
Popen("cmd /c jupyter notebook --notebook-dir=notebooks", shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment