After running the below code in my WIndows Laptop Jupyter Notebook.
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")
I get the following error
UnicodeEncodeError: 'charmap' codec can't encode characters in position 263607-263621: character maps to <undefined>
Below is the link of the tutorial I am following
https://causalnex.readthedocs.io/en/latest/03_tutorial/01_first_tutorial.html?highlight=viz.show(%20)#Structure-Learning
I was expecting to plot the interactive visualization in my jupyter notebook
New contributor
Trishala Ahalpara is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.