issues with stc.plot

External Email - Use Caution

Hello,
I am running Python 3.7.6 and mnedev version 0.20.dev0 on a Windows 10 Pro. Every time I plot the stc, I get to visualise the plot and I can use the interactive time viewer functionality. However, after checking the plot and closing it, I cannot proceed running the other lines of code as everything is frozen and it appears that the software is still running that command. The only thing I can do is to terminate the iPython (version 7.11.1) session and start a new one.
Here are the lines of code I use to plot stc.

surfer_kwargs = dict(hemi='split', subjects_dir=subjects_dir, views='lateral',initial_time=0.1, time_unit='s', size=(800, 400), smoothing_steps=5, background='b')

brain = stc.plot(**surfer_kwargs, time_viewer=True)

Any idea on what might be causing the issue?

Many thanks,
Federica
[University of Central Lancashire]
Please consider the environment before printing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200310/8de5f57a/attachment.html

External Email - Use Caution

Can you try running it in IPython and seeing if `%gui qt` helps? If you hit
Ctrl-C while it's stuck do you get any traceback? You can also try
upgrading traits, traitsui, pyface, mayavi, and PySurfer to see if any of
these helps.

You can also try the new PyVista-based visualization and time viewer
interface with something like:

with mne.viz.use_3d_backend('pyvista'):
    stc.plot(**surfer_kwargs, time_viewer=True)

This mode/backend is being actively developed but hopefully would be usable
for you. You'll need to `pip install pyvista` or so to try it.

Eric

External Email - Use Caution

Hello,
Did this issue got resolved or is there any workaround?
I have once heard that this might be the bug with the GUI and that there is
no known workaround...
I also have the similar issue!
Thank you in advance.
Sincerely yours,
Kirill

??, 10 ???. 2020 ?. ? 15:08, Federica Degno <FDegno at uclan.ac.uk>:

        External Email - Use Caution

Hello,

I am running Python 3.7.6 and mnedev version 0.20.dev0 on a Windows 10
Pro. Every time I plot the stc, I get to visualise the plot and I can use
the interactive time viewer functionality. However, after checking the plot
and closing it, I cannot proceed running the other lines of code as
everything is frozen and it appears that the software is still running that
command. The only thing I can do is to terminate the iPython (version
7.11.1) session and start a new one.

Here are the lines of code I use to plot stc.

surfer_kwargs = dict(hemi='split', subjects_dir=subjects_dir,
views='lateral',initial_time=0.1, time_unit='s', size=(800, 400),
smoothing_steps=5, background='b')

brain = stc.plot(**surfer_kwargs, time_viewer=True)

Any idea on what might be causing the issue?

Many thanks,

Federica
[image: University of Central Lancashire] Please consider the environment
before printing
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu
Mne_analysis Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200316/30d21194/attachment.html

External Email - Use Caution

One possible culprit is the iPython GUI backend. Try running the line
%gui qt
at the beginning of the iPython session or notebook, before you do any plotting.

-- dan
Daniel McCloy
https://dan.mccloy.info
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

??? Original Message ???