@tbhuy Hi, after install this package , I run the code in github, it reported one error:
ModuleNotFoundError: No module named ‘streamlit_visgraph’
can you help me to fix it? Thank you.
import streamlit
from streamlit_visgraph import visgraph
nodes = [
{ 'id': 1, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/1.png" },
{ 'id': 2, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/2.png" },
{ 'id': 3, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/3.png" },
{
'id': 4,
'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/',
'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/4.png",
'label': "pictures by this guy!",
},
{ 'id': 5, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/5.png" },
{ 'id': 6, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/6.png" },
{ 'id': 7, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/7.png" },
{ 'id': 8, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/8.png" },
{ 'id': 9, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/9.png" },
{ 'id': 10, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/10.png" },
{ 'id': 11, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/11.png" },
{ 'id': 12, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/12.png" },
{ 'id': 13, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/13.png" },
{ 'id': 14, 'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/', 'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/14.png" },
{
'id': 15,
'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/',
'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/missing.png",
'brokenImage': "https://visjs.github.io/vis-network/examples/network/img/indonesia/missingBrokenImage.png",
'label': "no image load",
},
{
'id': 16,
'shape': "circularImage", 'title':"Double click to open <br/> <img width='200' height='200' src='https://www.pngall.com/wp-content/uploads/11/World-Wide-Web-Address-PNG.png'/>", 'url':'https://www.google.com/',
'image': "https://visjs.github.io/vis-network/examples/network/img/indonesia/anotherMissing.png",
'brokenImage': "https://visjs.github.io/vis-network/examples/network/img/indonesia/missingBrokenImage.png",
'label': "no image load",
},
];
edges = [
{ 'from': 1, 'to': 2 },
{ 'from': 2, 'to': 3 },
{ 'from': 2, 'to': 4 },
{ 'from': 4, 'to': 5 },
{ 'from': 4, 'to': 10 },
{ 'from': 4, 'to': 6 },
{ 'from': 6, 'to': 7 },
{ 'from': 7, 'to': 8 },
{ 'from': 8, 'to': 9 },
{ 'from': 8, 'to': 10 },
{ 'from': 10, 'to': 11 },
{ 'from': 11, 'to': 12 },
{ 'from': 12, 'to': 13 },
{ 'from': 13, 'to': 14 },
{ 'from': 9, 'to': 16 },
];
options = {
'width': '1400px',
'height':'800px',
'nodes': {
'borderWidth': 4,
'size': 20,
'color': {
'border': "#222222",
'background': "#666666",
},
'font': { 'color': "#eeeeee" },
},
'edges': {
'color': "lightgray",
},
};
k=visgraph.visgraph(nodes=nodes, edges=edges, options=options)