steffenc commited on
Commit
99f9573
·
unverified ·
2 Parent(s): 1fc09d0 67f0f1c

Merge pull request #9 from opentensor/metagraph-block-tab

Browse files
Files changed (2) hide show
  1. README.md +4 -0
  2. metadash.py +13 -1
README.md CHANGED
@@ -100,6 +100,10 @@ streamlit run metadash.py
100
 
101
  ![Screenshot 2023-07-28 at 17 00 45](https://github.com/opentensor/dashboards/assets/6709103/5f0e5742-d003-4caf-97f7-84c02c975518)
102
 
 
 
 
 
103
 
104
 
105
  **Feature list**:
 
100
 
101
  ![Screenshot 2023-07-28 at 17 00 45](https://github.com/opentensor/dashboards/assets/6709103/5f0e5742-d003-4caf-97f7-84c02c975518)
102
 
103
+ *Block introspection* - Full metagraph state at selected block.
104
+
105
+ <img width="1721" alt="Screenshot 2023-08-02 at 11 12 43" src="https://github.com/opentensor/dashboards/assets/6709103/67942753-b44a-4c85-96e3-6efc11d3f008">
106
+
107
 
108
 
109
  **Feature list**:
metadash.py CHANGED
@@ -244,4 +244,16 @@ with tab3:
244
  st.plotly_chart(
245
  plotting.plot_cabals(validators, time_col=x, count_col=count_col, sel_col=color, ntop=ntop, smooth=smooth, smooth_agg=smooth_agg, opacity=opacity),
246
  use_container_width=True
247
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
244
  st.plotly_chart(
245
  plotting.plot_cabals(validators, time_col=x, count_col=count_col, sel_col=color, ntop=ntop, smooth=smooth, smooth_agg=smooth_agg, opacity=opacity),
246
  use_container_width=True
247
+ )
248
+
249
+ with tab4:
250
+
251
+ st.markdown('#')
252
+ st.markdown('#')
253
+ st.subheader('Block Introspection')
254
+ st.info('**Block introspection** *shows the complete metagraph of a block*')
255
+
256
+ selected_block = st.selectbox('**Block**', reversed(df_sel.block.unique()), index=0)
257
+
258
+ st.dataframe(df_sel.loc[df_sel['block']==selected_block])
259
+