Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
9987014e
Unverified
Commit
9987014e
authored
Mar 03, 2020
by
Yuge Zhang
Committed by
GitHub
Mar 03, 2020
Browse files
NAS visualization (#2085)
parent
ede59380
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tools/nni_cmd/nnictl_utils.py
tools/nni_cmd/nnictl_utils.py
+12
-0
No files found.
tools/nni_cmd/nnictl_utils.py
View file @
9987014e
...
@@ -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
))
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment