[英]Enable Gnome/GTK integration of IPython qtconsole from Anaconda
On a fresh install of Anaconda on my Debian testing system, the IPython Qtconsole from Anaconda has a poor appearance compared to the Qtconsole from Debian (see below) when running on a Gnome3 desktop. 在我的Debian测试系统上全新安装Anaconda时,在Gnome3桌面上运行时,Anaconda的IPython Qtconsole与Debian的Qtconsole(请参阅下文)相比,外观较差。 Other Qt-based GUIs like matplotlib windows are affected as well.
其他基于Qt的GUI(如matplotlib窗口)也会受到影响。
I suspect that the PySide Qt binding from Anaconda is not properly configured to use the system's Gnome/Gtk theme as the Qt from Debian does. 我怀疑Anaconda的PySide Qt绑定没有像Debian的Qt一样正确配置为使用系统的Gnome / Gtk主题。 In particular, default font size is affected which is quite annoying.
特别是,默认字体大小会受到影响,这很烦人。
I'd glad to hear how to make Anaconda's PySide to use the proper Gnome theme. 我很高兴听到如何使Anaconda的PySide使用适当的Gnome主题。
It's possible that the Continuum built qt doesn't have the correct libraries built into it. Continuum构建的qt可能没有内置正确的库。 Can you try building
qt
from https://github.com/continuumio/conda-recipes , and see if it helps? 您可以尝试从https://github.com/continuumio/conda-recipes构建
qt
,看看是否有帮助? You'll need a C compiler, and also various libraries installed (there is a notes.md
file that lists all the packages you need to install). 您将需要一个C编译器,并安装各种库(有
notes.md
文件,其中列出了您需要安装的所有软件包)。 You'll also probably need to rebuild shiboken
and pyside
(in that order) against your new qt
, since rebuilding qt
tends to break ABI (at least in my experience). 您可能还需要针对新的
qt
重建shiboken
和pyside
(以该顺序),因为重建qt
往往会破坏ABI(至少以我的经验)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.