BrainSpace icon indicating copy to clipboard operation
BrainSpace copied to clipboard

plot_hemispheres() crashes Google Colab

Open Neurojedi opened this issue 1 year ago • 5 comments

Hi everyone,

I am trying to use BrainSpace on Google Colab. However, Colab is getting crashed whenever I run plot_hemispheres() function. I tried the tutorial codes provided on https://brainspace.readthedocs.io/en/latest/python_doc/auto_examples/index.html

None of them is working on Colab, whereas they work on my local machine. Is there a way around solving this problem?

You can also access my code here: https://colab.research.google.com/drive/11RDqIxQQp0i6QMMx8L67C9G3IJ5yplen?usp=sharing

Kind regards.

Neurojedi avatar Sep 28 '22 11:09 Neurojedi

Hi @Neurojedi,

thx for bringing this up. I think this might be related to vtk and some required underlying libraries (e.g. libgl). Thus, you might need to run it within a computing environment that allows you to install the respective requirements (e.g. set up a Dockerfile and run it via mybinder).

Looping in @OualidBenkarim as well.

PeerHerholz avatar Sep 28 '22 16:09 PeerHerholz

This sounds analogous to issue #66. If you can get Conda to work inside colab then #66 may offer a solution. If not, then unless Oualid has a solution, I don't think this can be resolved in colab.

ReinderVosDeWael avatar Sep 28 '22 17:09 ReinderVosDeWael

Thx for the pointer @ReinderVosDeWael!

PeerHerholz avatar Sep 28 '22 19:09 PeerHerholz

I got curious and gave the solution of #66 a try in colab. Unfortunately it does not work.

ReinderVosDeWael avatar Oct 04 '22 21:10 ReinderVosDeWael

Thanks guys!

This is definitely related to vtk. I will check it out in more depth

OualidBenkarim avatar Nov 01 '22 17:11 OualidBenkarim