Unverified Commit 9987014e authored by Yuge Zhang's avatar Yuge Zhang Committed by GitHub
Browse files

NAS visualization (#2085)

parent ede59380
...@@ -8,6 +8,7 @@ import json ...@@ -8,6 +8,7 @@ import json
import time import time
import re import re
import shutil import shutil
import subprocess
from datetime import datetime, timezone from datetime import datetime, timezone
from pathlib import Path from pathlib import Path
from subprocess import Popen from subprocess import Popen
...@@ -388,6 +389,17 @@ def webui_url(args): ...@@ -388,6 +389,17 @@ def webui_url(args):
nni_config = Config(get_config_filename(args)) nni_config = Config(get_config_filename(args))
print_normal('{0} {1}'.format('Web UI url:', ' '.join(nni_config.get_config('webuiUrl')))) print_normal('{0} {1}'.format('Web UI url:', ' '.join(nni_config.get_config('webuiUrl'))))
def webui_nas(args):
'''launch nas ui'''
print_normal('Starting NAS UI...')
# TODO: find file path on installing with pypi
# TODO: use correct node on win32
try:
cmds = ['node', 'src/nasui/server.js', '--port', str(args.port), '--logdir', args.logdir]
subprocess.run(cmds)
except KeyboardInterrupt:
pass
def local_clean(directory): def local_clean(directory):
'''clean up local data''' '''clean up local data'''
print_normal('removing folder {0}'.format(directory)) print_normal('removing folder {0}'.format(directory))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment