How can I create a real-time candlestick bar chart using the lightweight_charts library by TradingView?

There is a complete code that I posted at Issue with st.experimental_fragment functions - #9 by ferdy

@st.experimental_fragment(run_every=120)

It will rerun every 120 sec or 2 minutes.