NeuroML / pyNeuroML

A single package in Python unifying scripts and modules for reading, writing, simulating and analysing NeuroML2/LEMS models.
https://docs.neuroml.org/Userdocs/Software/pyNeuroML.html
GNU Lesser General Public License v3.0
36 stars 30 forks source link

[Bug] pynml-plotmorph: vispy: no mouse events #358

Open Sietse20 opened 4 months ago

Sietse20 commented 4 months ago

Describe the bug When using the plot_interactive_3D function from pyneuroml.plot.PlotMorphologyVispy, the window that pops up contains a snapshot of the neuron that is not interactive. I can use the R button to rotate the 3D model, but any mouse input does not work.

To Reproduce I used the following code to try and plot a neuroml file of choice:

from pyneuroml.plot.PlotMorphologyVispy import plot_interactive_3D plot_interactive_3D("example.cell.nml")

Expected behavior I expected an interactive window to pop up, in which I could use mouse movements to rotate and zoom into the 3D model of the neuron to investigate its morphology.

Observed behavior Only the R button seemed to work in the interactive window. Any mouse movement did not result in an output.

System information:

sanjayankur31 commented 4 months ago

Could you try another python version to see if that perhaps helps? Maybe python3.9 for a start?

I'll check how one can get some debugging info from pyqt bits, it's almost certainly something there that either we or vispy have missed.

Sietse20 commented 4 months ago

I have tried python 3.9, but it still doesn't work :(

On Mon, 13 May 2024 at 16:11, Ankur Sinha @.***> wrote:

Could you try another python version to see if that perhaps helps? Maybe python3.9 for a start?

I'll check how one can get some debugging info from pyqt bits, it's almost certainly something there that either we or vispy have missed.

— Reply to this email directly, view it on GitHub https://github.com/NeuroML/pyNeuroML/issues/358#issuecomment-2107682772, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCRUBZKVT56AOZTGZ5DEJZDZCDC2DAVCNFSM6AAAAABHUGVL42VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGY4DENZXGI . You are receiving this because you authored the thread.Message ID: @.***>

sanjayankur31 commented 4 months ago

I can reproduce this on a windows 11 machine, but I haven't a clue how to debug it. There are no errors, no warnings, no output at all, so I don't even know where to start currently :(