diff --git a/python/graphscope/client/utils.py b/python/graphscope/client/utils.py index 84248341bc6f..09656f5a151c 100644 --- a/python/graphscope/client/utils.py +++ b/python/graphscope/client/utils.py @@ -268,6 +268,16 @@ def init(): logger.propagate = False GSLogger.update() + # nice traceback + try: + import rich.pretty + import rich.traceback + + rich.traceback.install() + rich.pretty.install() + except ImportError: + pass + @staticmethod def update(): if gs_config.show_log: diff --git a/python/requirements-dev.txt b/python/requirements-dev.txt index 8ae2741638dd..25ec15fab8d2 100644 --- a/python/requirements-dev.txt +++ b/python/requirements-dev.txt @@ -10,7 +10,7 @@ pytest pytest-cov pytest-timeout Pygments>=2.4.1 -myst-parser +myst-parser>=0.13.0 sphinx>=4.1.0,<6 sphinx-copybutton sphinx-panels diff --git a/python/requirements.txt b/python/requirements.txt index 1a14f65afc12..a6320468a24d 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -20,6 +20,7 @@ pyarrow;python_version>="3.11" pyarrow<=6.0.0;python_version<"3.11" pysimdjson PyYAML +rich scipy tqdm vineyard>=0.11.1; sys_platform != "win32"