Repository: SwanHubX/SwanLab (language: python)

Issue:
[BUG] 在CoLab上的打印问题
1. swanlab.init 双行打印
<img width="697" alt="image" src="https://github.com/SwanHubX/SwanLab-Cloud/assets/58305964/16a6850b-955f-46b0-876d-115b8802ae0a">

2. init之后，后续print流不再被打印

version：0.3.10


Discussion / hints:

Fix patch:
diff --git a/requirements.txt b/requirements.txt
index b8f09850..294b9c54 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
 # for swanlab
-swankit==0.1.0b5
+swankit==0.1.0b7
 swanboard==0.1.2b3
 
 # data process
diff --git a/swanlab/log/console.py b/swanlab/log/console.py
index da8f91fb..94b572c7 100644
--- a/swanlab/log/console.py
+++ b/swanlab/log/console.py
@@ -3,8 +3,6 @@
 from datetime import datetime
 from ..utils import FONT
 from swanlab.utils import create_time
-from swanlab.utils.judgment import in_jupyter
-from abc import ABC, abstractmethod
 
 
 # 检查当前日期是否和控制台日志文件名一致


Test patch:
diff --git a/test/unit/log/pytest_log.py b/test/unit/log/pytest_log.py
index f1869075..e337146d 100644
--- a/test/unit/log/pytest_log.py
+++ b/test/unit/log/pytest_log.py
@@ -102,8 +102,8 @@ def test_write_logging_to_file(self):
         assert len(files) == 1
         with open(os.path.join(console_dir, files[0]), "r") as f:
             content = f.readlines()
-            assert content[-2] == swanlog.prefix + " " + a + "\n"
-            assert content[-1] == swanlog.prefix + " " + b + "\n"
+            assert content[-2] == "swanlab:" + " " + a + "\n"
+            assert content[-1] == "swanlab:" + " " + b + "\n"
 
     def test_can_write_logging(self):
         swanlog.install(console_dir)
@@ -117,5 +117,5 @@ def test_can_write_logging(self):
         assert len(files) == 1
         with open(os.path.join(console_dir, files[0]), "r") as f:
             content = f.readlines()
-            assert content[-2] != swanlog.prefix + " " + a + "\n"
-            assert content[-1] == swanlog.prefix + " " + b + "\n"
+            assert content[-2] != "swanlab:" + " " + a + "\n"
+            assert content[-1] == "swanlab:" + " " + b + "\n"