I was trying to integrate calendar heatmaps, and july package (july · PyPI) looks exactly like what I need. However, how do I get to display the plot? Sorry if this is a silly question.
Steps to reproduce
Code snippet:
import numpy as np
import matplotlib.pyplot as plt
import july
from july.utils import date_range
dates = date_range("2020-01-01", "2020-12-31")
data = np.random.randint(0, 14, len(dates))
july.month_plot(dates, data, month=5, date_label=True, ax=axes[0])
```st.write doesn't seem to work.
import streamlit as st
import numpy as np
import matplotlib.pyplot as plt
import july
from july.utils import date_range
## Create data
dates = date_range("2020-01-01", "2020-12-31")
data = np.random.randint(0, 100, len(dates))
## Create a figure with a single axes
fig, ax = plt.subplots()
## Tell july to make a plot in a specific axes
july.month_plot(dates, data, month=2, date_label=True, ax=ax, colorbar=True)
st.title("📊 A `july.month_plot()` in streamlit")
## Tell streamlit to display the figure
st.pyplot(fig)