Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing spikeinterface GUI #63

Open
mtehrani-code opened this issue Apr 29, 2024 · 2 comments
Open

importing spikeinterface GUI #63

mtehrani-code opened this issue Apr 29, 2024 · 2 comments

Comments

@mtehrani-code
Copy link

Hello,

I'm having trouble importing the si GUI in Jupyter notebook. I imported spikeinterface earlier: import spikeinterface.full as si, and followed all the steps in the November 2023 tutorial.

Looking at the steps documented here:

https://github.com/SpikeInterface/spikeinterface-gui

Since I already have sorting_analyzer and the necessary extensions created, I should be able to load the GUI, correct?

When I type import spikeinterface_gui, I get the error:

ImportError: cannot import name 'WaveformPrincipalComponent' from 'spikeinterface.postprocessing' (C:\Users\matta\Documents\GitHub\spikeinterface\src\spikeinterface\postprocessing_init_.py)

I also did pip install PySide6 and pip install spikeinterface-gui but that didn't help.

Please advise.

M

@samuelgarcia
Copy link
Member

Hi,
spikeinterface-gui is Qt based and do not play well with jupyter (even we do it for demo and tutorial).
The best is to run it from standard python script (.py).

however, if you put %gui qt at the begening of the cell, it can helps - but this depend on the version of jupyter and Qt -

If your analyzer is saved in a folder the best is even to run it from the system terminal.
Good luck!

@simonarvin
Copy link

Got the same error with a standard Python script.
Solved the issue by installing from source.

git clone https://github.com/SpikeInterface/spikeinterface-gui.git
cd spikeinterface-gui
pip install .

Simon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants