Open vinaychuri opened 9 months ago
Hi vinaychuri,
I am not familiar with streamlit, but I guess you could try to save the chart as svg with chart.render("svg") and use the svg output. See scripts/make-showcase.ipynb for an example.
I am also facing the same issue.
Hi @ambideXtrous9,
Not a streamlit user here, but it seems you can plot the chart in streamlit by calling st.pyplot(chart.figure)
as in the following snippet.
chart = Chart(title=ticker, max_bars=max_bars)
chart.plot(prices, indicators)
st.pyplot(chart.figure)
I added an example mplchart-streamlit.py
in the examples
folder.
We can view the plots in Jupyter notebooks via the following code.
How to display the same in python streamlit app?
The above code + chart.show() does not work. The chart.plot() does not have any returnfig option.