YttriLab / A-SOID

An active learning platform for expert-guided, data efficient discovery of behavior.
Other
53 stars 8 forks source link

'hide_index' error message when predicting behaviors #61

Closed pozel closed 9 months ago

pozel commented 9 months ago

Describe the bug I am able to successfully save the annotated ethogram csv under the "predict" tab of the app. However, I see the below error message. I'm not sure if the error message is detrimental to the analyses, however it would help to understand what happened. Has anyone experienced this before and might give some light into what the problem is?

TypeError: DataFrameSelectorMixin.dataframe() got an unexpected keyword argument 'hide_index' Traceback: File "C:\Users\pozel\Anaconda3\envs\asoid\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.__dict__) File "C:\A-SOID\asoid\app.py", line 317, in <module> main() File "C:\A-SOID\asoid\app.py", line 306, in main F_predict.main(ri=ri, config=st.session_state['config']) File "c:\a-soid\asoid\apps\F_predict.py", line 746, in main describe_labels_single(single_label, annotation_classes_ex, framerate, summary_col) File "c:\a-soid\asoid\apps\F_predict.py", line 621, in describe_labels_single placeholder.dataframe(count_df, hide_index=True) File "C:\Users\pozel\Anaconda3\envs\asoid\lib\site-packages\streamlit\runtime\metrics_util.py", line 311, in wrapped_func result = non_optional_func(*args, **kwargs)

Screenshots error2

JensBlack commented 9 months ago

From your screenshot I gather that you are only getting about half of what should be shown in predict tab.

However, the error indicates that there is something wrong with streamlit.

This might be a version issue. Can you send me the output of conda list in your asoid environment? This will give me an overview of which versions you are using.

Some Background info:

The function is clearly documented in streamlit Documentation Here is a discussion on a previous issue on streamlit Issue

pozel commented 9 months ago

Sure thing! Thank you for linking the documentation from streamlit. I'm adding my environment here in a txt file. asoid_env.txt

JensBlack commented 9 months ago

Seems like you have an older version of streamlit installed:

streamlit 1.20.0 pypi_0 pypi

Can you try to update streamlit and see whether this error still persists?

You can update streamlit in the environment by using:

pip install --upgrade streamlit

Let me know if this works!

pozel commented 9 months ago

Thank you -- Works great!