Is there an easy way to add a rendered brain image to an html report?
I don't know how to get a handle to the figure of a plotted Brain object
and pass it to
you have to hack it unfortunately. The way to go is to save the mayavi plot to disk, read the image back and plot it using matplotlib imshow and then pass the figure handle.
The good news is that this should work. I remember having done it in the past.
Amazing I forgot that we added this in the meantime.
I actually used this code in successfully in the past and
it is mysterious that it does not work in your case.
What Python version are you using btw. ?
I?d also check for Mayavi / Pysurfer versions.
If you share a snippet we can check on our machines and compare.