Skip to content

Conversation

@alexrockhill
Copy link
Contributor

I thought it would be nice to have a GUI demo of how a dipole inside the brain is translated to electrical and magnetic potentials as read by MEG and EEG at the scalp. I didn't see any way for it to render using Sphinx in an interactive way but it could still be run and I think it would be useful for teaching, demonstrations and/or talks.

@mshamalainen, do you have the code for generating these images still? I could rewrite it but I figured it might be written since these were generated already.
image

The demo is currently working with an arrow representing the dipole that you can move around, but the sensor space is not yet represented, I can work on it but if the code already exists that would speed things up.

@alexrockhill
Copy link
Contributor Author

alexrockhill commented Nov 17, 2019

demo

@agramfort
Copy link
Member

@alexrockhill we have been working hard to remove mayavi from our examples.

I would suggest to make a binder app with ipywidgets for such education purpose. You can use make_field_maps https://mne.tools/stable/generated/mne.make_field_map.html to replicate matti's slide.

@alexrockhill
Copy link
Contributor Author

Thanks @agramfort! No resistance from me moving away from mayavi, I just didn't know how to implement it otherwise. Clearly I should have looked at your slides as well! Thanks for the advice :)

@agramfort
Copy link
Member

see https://github.com/agramfort/mne-web-apps

also @wmvanvliet has some examples with mayavi in the notebooks on binder

our new pyvista backend with panel installed may also work. See #7056

@agramfort agramfort closed this Nov 17, 2019
@wmvanvliet
Copy link
Contributor

wmvanvliet commented Nov 18, 2019

See https://github.com/wmvanvliet/neuroscience_tutorials for a Dockerfile that sets up Mayavi in binder. See https://github.com/wmvanvliet/neuroscience_tutorials/blob/master/mne-intro/expert.ipynb for a notebook that has some Mayavi figures embedded in it.

@agramfort
Copy link
Member

agramfort commented Nov 18, 2019 via email

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

Successfully merging this pull request may close these issues.

3 participants