Unable to render ipysigma graph

Repost of the issue here: Ipysigma graph not loading

Trying to get a sample graph created in streamlit using the code below:

import streamlit as st
import streamlit.components.v1 as components
import os
import networkx as nx
from ipysigma import Sigma


st.write('Testing Graph')

# Create an empty graph
G = nx.Graph()

# Add nodes "foo" and "bar"
G.add_node("foo")
G.add_node("bar")

# Add an edge between nodes "foo" and "bar"
G.add_edge("foo", "bar")

# Write the Sigma graph
Sigma.write_html(graph=G,
            background_color="white",
            path="./foobar_gr.html",
            fullscreen=True 
            )

with open("foobar_gr.html", "r") as f: 
    html_data = f.read()

components.html(html_data, height=1000, width=1000)

Streamlit will not render the html of the graph created but the graph loads fine in browser (Chrome and Firefox) and in Jupyter notebook. Using version

streamlit==1.40.1
ipysigma==0.24.3

Reinstalled using the versions mentioned in the post above the graph still is not displaying (no error though)