代码之家  ›  专栏  ›  技术社区  ›  trystine

试图运行CausalNex错误UnicodeEncodeError:“charmap”编解码器无法对位置263607-263621中的字符进行编码:字符映射到<undefined>

  •  0
  • trystine  · 技术社区  · 2 年前

    在我的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笔记本上绘制交互式可视化

    0 回复  |  直到 2 年前