天天看点

pyecharts离线使用说明

离线使用

v1.0之后,pyecharts默认使用在线的js asset文件,如果没联网会导致生成html打开后是空白。离线使用需要指定为本地的assets路径。

  1. from pyecharts.globals import CurrentConfig, OnlineHostType
    CurrentConfig.ONLINE_HOST = "/xx/pyecharts-assets-master/assets/"
               

Warning消除

from pyecharts.globals import WarningType
WarningType.ShowWarning = False