<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr"><div>Can you try running it in IPython and seeing if `%gui qt` helps? If you hit Ctrl-C while it&#39;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.</div><div><br></div><div>You can also try the new PyVista-based visualization and time viewer interface with something like:</div><div></div><div class="markdown-here-wrapper" style=""><pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">with mne.viz.use_3d_backend(&#39;pyvista&#39;):
    stc.plot(**surfer_kwargs, time_viewer=True)
</code></pre><div title="MDH:PGRpdiBnbWFpbF9vcmlnaW5hbD0iMSI+YGBgPC9kaXY+PGRpdiBnbWFpbF9vcmlnaW5hbD0iMSI+
d2l0aCBtbmUudml6LnVzZV8zZF9iYWNrZW5kKCdweXZpc3RhJyk6PC9kaXY+PGRpdiBnbWFpbF9v
cmlnaW5hbD0iMSI+Jm5ic3A7ICZuYnNwOyBzdGMucGxvdCguLi4pPC9kaXY+PGRpdiBnbWFpbF9v
cmlnaW5hbD0iMSI+YGBgPC9kaXY+PGRpdiBnbWFpbF9vcmlnaW5hbD0iMSI+PC9kaXY+" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div></div><div>This mode/backend is being actively developed but hopefully would be usable for you. You&#39;ll need to `pip install pyvista` or so to try it.</div><div><br></div><div>Eric</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 10, 2020 at 8:07 AM Federica Degno &lt;<a href="mailto:FDegno@uclan.ac.uk">FDegno@uclan.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">        External Email - Use Caution        </span></p><p></p>
<div class="gmail-m_5110542250218113822WordSection1">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal">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.</p>
<p class="MsoNormal">Here are the lines of code I use to plot stc.</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-family:&quot;Calibri Light&quot;,sans-serif">surfer_kwargs = dict(hemi=&#39;split&#39;, subjects_dir=subjects_dir, views=&#39;lateral&#39;,initial_time=0.1, time_unit=&#39;s&#39;, size=(800, 400), smoothing_steps=5, background=&#39;b&#39;)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Calibri Light&quot;,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Calibri Light&quot;,sans-serif">brain = stc.plot(**surfer_kwargs, time_viewer=True)<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any idea on what might be causing the issue?</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Many thanks,</p>
<p class="MsoNormal">Federica</p>
</div>
<u></u>

<table cellspacing="0" cellpadding="0" width="480" border="0">
<tbody>
<tr>
<td style="font-size:12px;font-family:Arial;width:480px;padding:0px;vertical-align:top" colspan="2" valign="top">
<img alt="University of Central Lancashire" style="width: 480px; height: auto; border: 0px;">
</td>
</tr>
</tbody>
</table>
Please consider the environment before printing
</div>

_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote></div></div>