jupytor notebook运行时一定要restart

今天搞了一天的matplotlib的字体缺少的问题,matplotlib图片中的字体缺少了宋体以及Times New Roman的非加粗形式的字体,于是想方设法要把这两种字体加到matplotlib中去,尝试了许多网上的方法,比如
https://blog.csdn.net/u012111465/article/details/79430365
https://blog.csdn.net/u012915691/article/details/80616121
弄了半天,发现一点变化也没有,最后突然意识到可能jupyter notebook要restart才有效果,之后果然就成功了,真是多么痛的领悟。以后用jupyter notebook运行代码就一定要restart,养成这个习惯。

猜你喜欢

转载自blog.csdn.net/weixin_43331915/article/details/83051894