Commit ·
8e67d4e
1
Parent(s): e18b985
hacky workaround: don't cache heatmaps in case they don't render the first time
Browse files
app.py
CHANGED
|
@@ -1278,7 +1278,7 @@ def get_kango_hist(show_medians=False):
|
|
| 1278 |
|
| 1279 |
return layered_chart
|
| 1280 |
|
| 1281 |
-
@st.cache_data
|
| 1282 |
def render_vanilla_heatmap():
|
| 1283 |
|
| 1284 |
corr_matrix = num_video_df.corr()
|
|
@@ -1294,7 +1294,7 @@ def render_vanilla_heatmap():
|
|
| 1294 |
|
| 1295 |
st.pyplot(plt.gcf())
|
| 1296 |
|
| 1297 |
-
@st.cache_data
|
| 1298 |
def render_level_row_unordered():
|
| 1299 |
|
| 1300 |
corr_matrix = num_video_df.drop(['Proportion of determiners', 'Proportion of nouns', 'Proportion of wago', 'Proportion of gairaigo'], axis=1).corr()
|
|
@@ -1312,7 +1312,7 @@ def render_level_row_unordered():
|
|
| 1312 |
|
| 1313 |
st.pyplot(plt.gcf())
|
| 1314 |
|
| 1315 |
-
@st.cache_data
|
| 1316 |
def render_level_col_ordered():
|
| 1317 |
|
| 1318 |
corr_matrix = num_video_df.drop(['Proportion of determiners', 'Proportion of nouns', 'Proportion of wago', 'Proportion of gairaigo'], axis=1).corr()
|
|
|
|
| 1278 |
|
| 1279 |
return layered_chart
|
| 1280 |
|
| 1281 |
+
#@st.cache_data
|
| 1282 |
def render_vanilla_heatmap():
|
| 1283 |
|
| 1284 |
corr_matrix = num_video_df.corr()
|
|
|
|
| 1294 |
|
| 1295 |
st.pyplot(plt.gcf())
|
| 1296 |
|
| 1297 |
+
#@st.cache_data
|
| 1298 |
def render_level_row_unordered():
|
| 1299 |
|
| 1300 |
corr_matrix = num_video_df.drop(['Proportion of determiners', 'Proportion of nouns', 'Proportion of wago', 'Proportion of gairaigo'], axis=1).corr()
|
|
|
|
| 1312 |
|
| 1313 |
st.pyplot(plt.gcf())
|
| 1314 |
|
| 1315 |
+
#@st.cache_data
|
| 1316 |
def render_level_col_ordered():
|
| 1317 |
|
| 1318 |
corr_matrix = num_video_df.drop(['Proportion of determiners', 'Proportion of nouns', 'Proportion of wago', 'Proportion of gairaigo'], axis=1).corr()
|