现象见下图
对比一下jupyter lab中的状况
powershell和cmd都试了,也没问题不知道是不是GBK(CP936)相关的问题
!chcp 65001 !echo 中文
结果:Active code page: 65001中文
在头上加 #encoding=utf8;
通过ctrl+shift+p调出命令输入框,输入Jupyter:create new blank notebook,单元格中输入!echo 中文,正常显示。