# coreg GUI rendering problem (OS X)

**URL:** <https://mne.discourse.group/t/coreg-gui-rendering-problem-os-x/1441>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [February 28, 2018, 8:07am UTC](https://mne.discourse.group/t/coreg-gui-rendering-problem-os-x/1441 "2018-02-28T08:07:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [February 28, 2018, 8:07am UTC](https://mne.discourse.group/t/coreg-gui-rendering-problem-os-x/1441/1 "2018-02-28T08:07:34Z")

</div>

Dear list,

I'm an avid conda\<[https://docs.anaconda.com/anaconda/install/](https://docs.anaconda.com/anaconda/install/)\>-user for my python setups on various machines, and very pleased about the new ?experimental? 3.6-based mne-install\<[http://www.martinos.org/mne/stable/install\_mne\_python.html](http://www.martinos.org/mne/stable/install_mne_python.html)\>.

Having installed based on the environment.yml\<[https://raw.githubusercontent.com/mne-tools/mne-python/master/environment.yml](https://raw.githubusercontent.com/mne-tools/mne-python/master/environment.yml)\> I have an issue with getting the coregistration gui rendering properly: the view only uses 1/4 of the canvas (see attached screenshot). My system is

- OS X High Sierra (10.13.3)  
- retina screen (running in default scaled mode)  
- tried with both conda's pyqt=5.6.0 and pip?s pyqt5=5.10.1, no dice, cross-platform toolkit my ? 🙂

Any hints on how to make this baby work are much appreciated!

/Chris

[cid:396A6DEC-76B7-4BA3-BA2A-B83C03DDCC17 at waoo.dk]

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [February 28, 2018, 3:15pm UTC](https://mne.discourse.group/t/coreg-gui-rendering-problem-os-x/1441/2 "2018-02-28T15:15:26Z")

</div>

We need to use VTK8 for proper HiDPI (retina) support, which causes this  
problem. VTK8 should actually now installable on OSX, Linux, and Windows  
via `pip`:

[https://github.com/enthought/mayavi/issues/84#issuecomment-361901157](https://github.com/enthought/mayavi/issues/84#issuecomment-361901157)

So you could try removing the `vtk` conda package and your existing  
`mayavi` package, and installing both via `pip`. I have been using this  
setup on my OSX laptop for a few weeks with good results.

Eventually the experimental MNE 3.6 environment will probably be updated to  
use this configuration.

Eric

> Dear list,
> 
> I'm an avid conda \<[https://docs.anaconda.com/anaconda/install/&gt;\-user](https://docs.anaconda.com/anaconda/install/&gt;%5C-user) for  
> my python setups on various machines, and very pleased about the new ?experimental?  
> 3.6-based mne-install  
> \<[http://www.martinos.org/mne/stable/install\_mne\_python.html&gt;\](http://www.martinos.org/mne/stable/install_mne_python.html&gt;%5C).
> 
> Having installed based on the environment.yml  
> \<[https://raw.githubusercontent.com/mne-tools/mne-python/master/environment.yml&gt](https://raw.githubusercontent.com/mne-tools/mne-python/master/environment.yml&gt);  
> I have an issue with getting the coregistration gui rendering properly: the  
> view only uses 1/4 of the canvas (see attached screenshot). My system is
> 
> - OS X High Sierra (10.13.3)  
> - retina screen (running in default scaled mode)  
> - tried with both conda's pyqt=5.6.0 and pip?s pyqt5=5.10.1, no dice,  
> cross-platform toolkit my ? 🙂
> 
> Any hints on how to make this baby work are much appreciated!
> 
> /Chris
> 
> --  
> Christopher Bailey, MSc  
> MEG Engineer, MINDLab Core Experimental Facility  
> Center of Functionally Integrative Neuroscience (CFIN)  
> Aarhus University, Denmark
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Mne\_analysis mailing list  
> Mne\_analysis at nmr.mgh.harvard.edu  
> [https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne\_analysis](https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis)
> 
> The information in this e-mail is intended only for the person to whom it  
> is  
> addressed. If you believe this e-mail was sent to you in error and the  
> e-mail  
> contains patient information, please contact the Partners Compliance  
> HelpLine at  
> [http://www.partners.org/complianceline](http://www.partners.org/complianceline) . If the e-mail was sent to you in  
> error  
> but does not contain patient information, please contact the sender and  
> properly  
> dispose of the e-mail.

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20180228/07de6312/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180228/07de6312/attachment-0001.html)  
-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: PastedGraphic-1.png  
Type: image/png  
Size: 63181 bytes  
Desc: not available  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20180228/07de6312/attachment-0001.png](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180228/07de6312/attachment-0001.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 1, 2018, 8:00pm UTC](https://mne.discourse.group/t/coreg-gui-rendering-problem-os-x/1441/3 "2018-03-01T20:00:19Z")

</div>

Hi Eric, thanks for the hints/links. I still had some residual problems with the ?standard? environment file, all obviously (py)Qt-related and stemming from the enthought-curated modules. I finally got a working coregistration GUI by:

- using git master for traits, pyface and traitsui, as well as mayavi (cf. this thread\<[https://github.com/enthought/mayavi/issues/595](https://github.com/enthought/mayavi/issues/595)\>)  
- making sure the following are set (e.g. in ~/.bashrc):

export ETS\_TOOLKIT=qt4 # actually not v4!! see here\<[https://github.com/enthought/traitsui/issues/407](https://github.com/enthought/traitsui/issues/407)\>  
export QT\_API=pyqt5 # v5 selected here?

I?ve attached the slightly modified env-file (NB: some testing-related modules not installed), though I realise it?s not very reliable in the long run: any changes to master on a number of modules might break the install ☹ It seems that there is long-overdue activity on all of them right now, so perhaps things will stabilise soon.

Would this be a reason to have an mne conda-channel? To pin down working versions for a cleaner installation process? ?conda install mne? where all plots are pretty and publications high-impact 😉

/Chris

-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20180301/ccbdd5da/attachment-0001.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180301/ccbdd5da/attachment-0001.html)  
-------------- next part --------------  
A non-text attachment was scrubbed...  
Name: mne\_py3env\_notests.yml  
Type: application/octet-stream  
Size: 590 bytes  
Desc: mne\_py3env\_notests.yml  
Url : [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20180301/ccbdd5da/attachment-0001.obj](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180301/ccbdd5da/attachment-0001.obj)  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20180301/ccbdd5da/attachment-0001.htm](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180301/ccbdd5da/attachment-0001.htm)
