If I use the following piece of code:
import streamlit as st
import graphviz as gv
g = gv.Graph('hello')
g.node('hello', image='heart.png', shape='box')
g.node('world', label="world", shape='ellipse')
g.edge('hello', 'world')
st.graphviz_chart(g)
No matter where I place the heart.png, I cannot get the image to be displayed. I even used imagepath keyword, but the image would not be rendered.
A second problem is if I use a label with HTML in it such as the following, the graph will not even be drawn:
import streamlit as st
import graphviz as gv
g = gv.Graph('hello')
g.node('hello', label="<<h1>Hello</h1>>", shape='box')
g.node('world', label="world\r", shape='ellipse')
g.edge('hello', 'world')
st.graphviz_chart(g)
Any help with this?
Thanks and happy holidays,
Dinesh