Skip to content

Commit

Permalink
Add feedback when users launch dashboard to cloud with editable versi…
Browse files Browse the repository at this point in the history
…on (#2655)
  • Loading branch information
IsaacYangSLA authored Jun 18, 2024
1 parent 3d1a509 commit fc2bc47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nvflare/dashboard/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ def cloud(args):
dest = os.path.join(cwd, f"{csp}_start_dsb.sh")
dsb_start = template[f"{csp}_start_dsb_sh"]
version = nvflare.__version__
if "+" in version:
print(
f"Unable to launching dashboard on cloud with {version}. Please install official NVFlare release from PyPi."
)
exit(0)
replacement_dict = {"NVFLARE": f"nvflare=={version}", "START_OPT": f"-i {args.image}" if args.image else ""}
utils._write(
dest,
Expand Down

0 comments on commit fc2bc47

Please sign in to comment.