在我的WIndows笔记本电脑Jupyter笔记本电脑中运行以下代码后。
from causalnex.plots import plot_structure, NODE_STYLE, EDGE_STYLE viz = plot_structure( sm, all_node_attributes=NODE_STYLE.WEAK, all_edge_attributes=EDGE_STYLE.WEAK, ) viz.show("supporting_files/01_simple_plot.html")
我得到以下错误
UnicodeEncodeError: 'charmap' codec can't encode characters in position 263607-263621: character maps to <undefined>
下面是我正在学习的教程的链接 https://causalnex.readthedocs.io/en/latest/03_tutorial/01_first_tutorial.html?highlight=viz.show(%20)#Structure-Learning
我希望在我的jupyter笔记本上绘制交互式可视化