離線使用
v1.0之後,pyecharts預設使用線上的js asset檔案,如果沒聯網會導緻生成html打開後是空白。離線使用需要指定為本地的assets路徑。
-
from pyecharts.globals import CurrentConfig, OnlineHostType CurrentConfig.ONLINE_HOST = "/xx/pyecharts-assets-master/assets/"
Warning消除
from pyecharts.globals import WarningType
WarningType.ShowWarning = False