denisecailab / minian

miniscope analysis pipeline with interactive visualizations
GNU General Public License v3.0
91 stars 35 forks source link

Interactive plot not playing #263

Open JohnStout opened 7 months ago

JohnStout commented 7 months ago

The interactive plots aren't playing the movie visually. I'm having rendering issues with another package and am thinking it might be some sort of dependency issue or a 'my' computer issue.

Any thoughts?

Screenshot 2024-01-26 115525

GrowlingM1ke commented 7 months ago

I can confirm I'm having the same issue here. It used to work before, our organization ran a server update, which necessitated reinstalling conda environments and reinstalling minian. This leads me to believe that possibly due to some leniency in environment.yml in terms of the dependencies, some package update could have broken the visualization. The only thing that I could gather as to the source of the problem is the console output from my browser:

C:\ProgramData\miniconda\envs\minian\lib\site-packages\pyviz_comms\__init__.py _handle_msg L340
C:\ProgramData\miniconda\envs\minian\lib\site-packages\panel\viewable.py _comm_change L762
C:\ProgramData\miniconda\envs\minian\lib\site-packages\panel\viewable.py _change_event L786
C:\ProgramData\miniconda\envs\minian\lib\site-packages\panel\viewable.py _process_events L776
C:\ProgramData\miniconda\envs\minian\lib\site-packages\param\parameterized.py set_param L1356
    ValueError: '_buffers' is not a parameter of PlotSize01484`

However, I am unfamiliar with the packages to deduce if the error is related or not.

GrowlingM1ke commented 7 months ago

One of my coworkers, had a backup of a conda environment, where the interactive plot did work. In case I don't find the solution I'm pasting the output conda list here as I'm fairly certain this has to be some sort of dependency issue (The output is considerably longer than what is required for minian, as minian was just a segment of our pipeline):

Edit: I believe I managed to find the problem so I removed the output. It looks like the offender (as per my error output) is an update to the pyviz_comms package, which currently defaults to 3.0.0.

@JohnStout add the following to your environment.yml

  - pyviz_comms=2.2.1

@phildong @denisecai do you still take PRs? I feel like this one is critical as the entire visualization aspect of your project is rendered useless without the specified version of the dependency.

cawarwick commented 5 months ago

I also had that same issue and installing the specified version of pyviz within my minian env it fixed it.

conda install -c pyviz pyviz_comms=2.2.1