Support for plotnine's ggplot

Are there any plans to support plotnine’s ggplot.

TIA.

Hi @farbodr, welcome to the Streamlit community!

It’s a little awkward, based on how plotnine has defined their drawing behavior, but it does work in Streamlit (as we support matplotlib):

import streamlit as st
from plotnine import *
from plotnine.data import mtcars

p = ggplot(mtcars, aes("wt", "mpg")) + geom_point()
st.pyplot(ggplot.draw(p))

1 Like

Thank you. This is great and good enough for what I need.

FR

1 Like