🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Using kaleido cannot write Chinese character properly but ok in jupyter lab

In my company’s cloud platform, I was able to have Chinese character display properly in jupyter lab with this toy code:

import plotly.express as px

df = px.data.gapminder().query("country=='Canada'")
fig = px.line(df, x="year", y="lifeExp", title="恭喜发财")
fig.write_image('test.png')

which give me this result:


but when writing png to a local directory, the resulting png file cannot display Chinese charater anymore
here is the pip list:
Package Version


absl-py 0.12.0
ansi2html 1.6.0
ansiwrap 0.8.4
anyio 2.2.0
appdirs 1.4.4
argon2-cffi 20.1.0
astunparse 1.6.3
async-generator 1.10
attrs 20.3.0
autovizwidget 0.18.0
Babel 2.9.0
backcall 0.2.0
black 21.7b0
bleach 3.3.0
Brotli 1.0.9
cached-property 1.5.2
cachetools 4.2.1
causalml 0.10.0
certifi 2021.5.30
cffi 1.14.5
chardet 4.0.0
click 8.0.1
cloudpickle 1.6.0
colorama 0.4.4
commonmark 0.9.1
contextvars 2.4
cos-python-sdk-v5 1.9.4
coscmd 1.8.5.37
crcmod 1.7
cryptography 3.4.7
cycler 0.10.0
Cython 0.29.24
dash 2.0.0
dash-core-components 2.0.0
dash-html-components 2.0.0
dash-table 5.0.0
dataclasses 0.8
DateTime 4.3
decorator 4.4.2
defusedxml 0.7.1
deprecation 2.1.0
dicttoxml 1.7.4
dill 0.3.4
dowhy 0.6
econml 0.11.1
entrypoints 0.3
Flask 2.0.1
Flask-Compress 1.10.1
flatbuffers 1.12
future 0.18.2
gast 0.3.3
glpk 0.4.6
google-auth 1.28.1
google-auth-oauthlib 0.4.4
google-pasta 0.2.0
graphviz 0.17
grpcio 1.34.1
h5py 2.10.0
hdijupyterutils 0.18.0
idna 2.10
immutables 0.15
importlib-metadata 3.10.1
ipopt 1.0.3
ipykernel 5.5.3
ipython 7.16.1
ipython-genutils 0.2.0
ipywidgets 7.6.3
itsdangerous 2.0.1
jedi 0.18.0
Jinja2 3.0.1
joblib 1.0.1
json5 0.9.5
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 6.2.0
jupyter-console 6.4.0
jupyter-core 4.7.1
jupyter-dash 0.4.0
jupyter-packaging 0.9.1
jupyter-server 1.6.1
jupyterlab 3.0.14
jupyterlab-pygments 0.1.2
jupyterlab-server 2.4.0
jupyterlab-widgets 1.0.0
kaleido 0.2.1
Keras 2.4.3
keras-nightly 2.5.0.dev2021032900
Keras-Preprocessing 1.1.2
kiwisolver 1.3.1
lightgbm 3.2.1
llvmlite 0.36.0
Markdown 3.3.4
MarkupSafe 2.0.1
matplotlib 3.3.4
mistune 0.8.4
mock 4.0.3
mpmath 1.2.1
mypy-extensions 0.4.3
nb-black 1.0.7
nbclassic 0.2.8
nbclient 0.5.3
nbconvert 6.0.7
nbformat 5.1.3
nest-asyncio 1.5.1
networkx 2.5.1
nose 1.3.7
notebook 6.3.0
numba 0.53.1
numpy 1.19.5
oauthlib 3.1.0
opt-einsum 3.3.0
packaging 20.9
pandas 1.1.5
pandas-explode 0.0.6
pandocfilters 1.4.3
papermill 2.3.3
parso 0.8.2
pathspec 0.9.0
patsy 0.5.1
pexpect 4.8.0
pickleshare 0.7.5
Pillow 8.3.1
pip 21.1.3
plotly 5.3.1
ply 3.11
prettytable 2.1.0
progressbar2 3.53.1
prometheus-client 0.10.1
prompt-toolkit 3.0.18
protobuf 3.15.8
psutil 5.8.0
ptyprocess 0.7.0
pyasn1 0.4.8
pyasn1-modules 0.2.8
pycparser 2.20
pycryptodome 3.10.1
pydantic 1.8.2
pydot 1.4.2
pydotplus 2.0.2
pygam 0.8.0
Pygments 2.8.1
pykerberos 1.2.1
Pyomo 6.0.1
pyparsing 2.4.7
pyro-api 0.1.2
pyro-ppl 1.7.0
pyrsistent 0.17.3
python-dateutil 2.8.1
python-utils 2.5.6
pytz 2021.1
PyYAML 5.4.1
pyzmq 22.0.3
qtconsole 5.0.3
QtPy 1.9.0
regex 2021.7.6
requests 2.25.1
requests-kerberos 0.12.0
requests-oauthlib 1.3.0
retrying 1.3.3
rich 10.9.0
rsa 4.7.2
ruamel.yaml 0.17.16
ruamel.yaml.clib 0.2.6
scikit-learn 0.23.2
scipy 1.4.1
seaborn 0.11.1
Send2Trash 1.5.0
setuptools 52.0.0.post20210125
shap 0.38.1
six 1.16.0
slicer 0.0.7
sniffio 1.2.0
sparkmagic 0.12.9
sparse 0.12.0
statsmodels 0.12.2
sympy 1.8
tenacity 8.0.1
tensorboard 2.5.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.0
tensorflow 2.3.3
tensorflow-estimator 2.3.0
termcolor 1.1.0
terminado 0.9.4
testpath 0.4.4
textwrap3 0.9.2
threadpoolctl 2.2.0
tomli 1.0.4
tomlkit 0.7.0
torch 1.9.0
tornado 6.1
tqdm 4.60.0
traitlets 4.3.3
typed-ast 1.4.3
typing-extensions 3.7.4.3
urllib3 1.26.4
venus-extension 0.3.0
venus-openapi 0.1.0
venus-tools 0.1.6.0
wcwidth 0.2.5
webencodings 0.5.1
Werkzeug 2.0.1
wheel 0.36.2
widgetsnbextension 3.5.1
wrapt 1.12.1
xgboost 1.4.2
XlsxWriter 1.4.4
zipp 3.4.1
zope.interface 5.3.0

Can anyone help point me on how to solve this? Thanks in advance!