diff --git a/pyproject.toml b/pyproject.toml index 203e562..a886bfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,8 @@ classifiers = [# 项目分类 [project.urls] # 项目链接 "Homepage" = "https://swanhub.co" -"Source" = "https://github.com/SwanHubX/SwanLab" -"Bug Reports" = "https://github.com/SwanHubX/SwanLab/issues" -"Documentation" = "https://geektechstudio.feishu.cn/wiki/space/7310593325374013444?ccm_open_type=lark_wiki_spaceLink&open_tab_from=wiki_home" +"Source" = "https://github.com/SwanHubX/SwanLab-Dashboard" +"Bug Reports" = "https://github.com/SwanHubX/SwanLab-Dashboard/issues" [tool.hatch.version] # 动态设置项目版本 path = "swanboard/package.json" # package.json文件,从中获取版本号 @@ -69,8 +68,6 @@ include = [ "/test", # 包含一些测试脚本,确保测试成功 "/README.md", # 包含readme "/requirements.txt", # 包含依赖 - "/requirements-swan.txt", # 包含可选依赖 - "/.config/copy_frontend.py", # 包含拷贝前端文件的脚本 "/package.json", # 包含前端的package.json文件 ] diff --git a/swanboard/package.json b/swanboard/package.json index 0e94f50..9965390 100644 --- a/swanboard/package.json +++ b/swanboard/package.json @@ -1,6 +1,6 @@ { "name": "swanboard", - "version": "0.1.2b2", + "version": "0.1.2b3", "description": "Dashboard for Swanlab", "python": "true" } diff --git a/test/start_server.py b/test/start_server.py index 4bc6c5f..c058ce5 100644 --- a/test/start_server.py +++ b/test/start_server.py @@ -12,12 +12,11 @@ from tutils.config import SWANLAB_LOG_DIR from swanboard.db import connect import os -from swanboard import run +from swanboard import SwanBoardRun os.environ["SWANLAB_LOG_DIR"] = SWANLAB_LOG_DIR - -connect() +connect(SWANLAB_LOG_DIR) if __name__ == "__main__": - run("debug") + SwanBoardRun.run(path=SWANLAB_LOG_DIR, host="0.0.0.0", port=6092) diff --git a/vue/index.html b/vue/index.html index 82c77dc..d74b115 100644 --- a/vue/index.html +++ b/vue/index.html @@ -3,6 +3,9 @@ + + + SwanLab diff --git a/vue/src/assets/logo.ico b/vue/src/assets/logo.ico index 5e16463..937e37c 100644 Binary files a/vue/src/assets/logo.ico and b/vue/src/assets/logo.ico differ diff --git a/vue/src/assets/logo.png b/vue/src/assets/logo.png new file mode 100644 index 0000000..f7c9195 Binary files /dev/null and b/vue/src/assets/logo.png differ diff --git a/vue/src/assets/swanlab.svg b/vue/src/assets/swanlab.svg index e7b8dfb..9fc642d 100644 --- a/vue/src/assets/swanlab.svg +++ b/vue/src/assets/swanlab.svg @@ -1 +1,12 @@ - \ No newline at end of file + + + + + + + + + + + + diff --git a/vue/src/i18n/en-US/experiment.json5 b/vue/src/i18n/en-US/experiment.json5 index 0a79491..2c7b327 100644 --- a/vue/src/i18n/en-US/experiment.json5 +++ b/vue/src/i18n/en-US/experiment.json5 @@ -94,7 +94,9 @@ gpu_cores: 'GPU count', gpu_type: 'GPU type', logdir: 'Logdir', - swanlab: 'SwanLab Version' + swanlab: 'SwanLab Version', + verbose: 'Python Verbose', + pid: 'PID' }, empty: { requirements: 'No requirements found' diff --git a/vue/src/i18n/zh-CN/experiment.json5 b/vue/src/i18n/zh-CN/experiment.json5 index 01e32f6..7356f6f 100644 --- a/vue/src/i18n/zh-CN/experiment.json5 +++ b/vue/src/i18n/zh-CN/experiment.json5 @@ -22,7 +22,9 @@ python: 'Python Version', start_time: 'Start Time', swanlab: 'SwanLab Version', - workspace: 'Run path' + workspace: 'Run path', + verbose: 'Python详细信息', + pid: 'PID' }, navs: { hardware: 'System Hardware', diff --git a/vue/src/layouts/main/components/HeaderBar.vue b/vue/src/layouts/main/components/HeaderBar.vue index d063ec9..d56ca74 100644 --- a/vue/src/layouts/main/components/HeaderBar.vue +++ b/vue/src/layouts/main/components/HeaderBar.vue @@ -62,11 +62,11 @@ defineProps({ const links = ref([ { title: 'Docs', - link: 'https://geektechstudio.feishu.cn/wiki/space/7310593325374013444?ccm_open_type=lark_wiki_spaceLink&open_tab_from=wiki_home' + link: 'https://docs.swanlab.cn/zh/guide_cloud/general/what-is-swanlab.html' }, { title: 'Examples', - link: 'https://github.com/SwanHubX/SwanLab-examples' + link: 'https://docs.swanlab.cn/zh/examples/mnist.html' }, { title: 'Feedback', diff --git a/vue/src/views/experiment/pages/environment/pages/EnvIndex.vue b/vue/src/views/experiment/pages/environment/pages/EnvIndex.vue index ba40fb4..334cc20 100644 --- a/vue/src/views/experiment/pages/environment/pages/EnvIndex.vue +++ b/vue/src/views/experiment/pages/environment/pages/EnvIndex.vue @@ -59,6 +59,10 @@ const overview = computed(() => { { key: 'OS', value: system.os + }, + { + key: 'pid', + value: system.pid } ] }) @@ -70,6 +74,10 @@ const systems = computed(() => { key: 'python', value: system.python }, + { + key: 'verbose', + value: system.python_verbose + }, { key: 'executable', value: system.executable,