Skip to content

Commit 7c4b00d

Browse files
authored
Merge pull request #1152 from SwanHubX/fix/dashboard-import
Remove LocalRunCallback import and update callback imports
2 parents 08f0545 + f1e932b commit 7c4b00d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

swanlab/data/callbacker/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
@file: __init__.py
44
@time: 2025/6/21 17:10
55
@description: 回调器模块,四大回调器对应 swanlab 的四种运行模式。
6-
1. local: 本地模式回调器
6+
1. local: 本地模式回调器,此回调不自动导出
77
2. cloud: 云端模式回调器
88
3. offline: 离线模式回调器
99
4. disabled: 禁用回调器
1010
"""
1111

1212
from .cloud import CloudPyCallback
1313
from .disabled import DisabledCallback
14-
from .local import LocalRunCallback
1514
from .offline import OfflineCallback

swanlab/data/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from rich.text import Text
1212

1313
from swanlab.core_python import auth
14-
from swanlab.data.callbacker import *
1514
from swanlab.data.formatter import check_load_json_yaml
1615
from swanlab.data.run import SwanLabRun
1716
from swanlab.data.run.helper import SwanLabRunOperator
@@ -165,6 +164,8 @@ def _create_operator(
165164
:param cbs: 用户传递的回调函数列表
166165
:return: SwanLabRunOperator, CloudRunCallback
167166
"""
167+
from swanlab.data.callbacker import DisabledCallback, CloudPyCallback, OfflineCallback
168+
168169
c = []
169170
# 1.1. 禁用模式
170171
if mode == SwanLabMode.DISABLED.value:

0 commit comments

Comments
 (0)