ipython - 无法在 ipython qtconsole 中更改字体大小

标签 ipython

我尝试引用 this answer 更改 ipython qtconsole 字体大小在计算器中;但是,无论我如何更改 ~/.ipython/profile_default/ipython_config.py,字体大小都不会更改。

➜  ~  ipython profile locate
/home/nick/.ipython/profile_default

➜  ~  head .ipython/profile_default/ipython_config.py 
# Configuration file for ipython.
c = get_config()    
c.IPythonWidget.font_size = 16
c.IPythonWidget.font_family = 'Source Code Pro'

➜  ~  uname -a
Linux nick-thinkpad 4.2.5-1-ARCH #1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015 x86
_64 GNU/Linux                                                                  

➜  ~  ipython --version
4.0.0

令我惊讶的是,ipython qtconsole --ConsoleWidget.font_size=16 有效。我的配置有什么问题?

最佳答案

从 4.0 版开始,ipython qtconsole 已弃用(因为 big split)。相反,请使用 jupyter qtconsole。您可以通过将 c.ConsoleWidget.font_size = 12 添加到 ~/.jupyter/jupyter_qtconsole_config.py 来设置字体大小(这也会设置 ipython qtconsole 的字体大小)。 注意 bug in jupyter这不允许您自动创建默认配置文件。现在,您只需手动创建该文件。

关于ipython - 无法在 ipython qtconsole 中更改字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33692925/

相关文章:

python - 如何在 Anaconda 2.0 中使用 Python 3.4 激活 Ipython Notebook 和 QT 控制台

python - Ipython %matplotlib 给出 "ImportError: No module named moves"尽管通过 pip 安装了移动

python - 名称 'get_config' 未定义

python - IPython shell 的换行问题

matlab - 如何在 Jupyter Notebook 中编写 MATLAB 函数?

python - 在 WinPython 中设置 IPython Qt Console 启动位置

python - 如何获取 ipython session 中的输入总数?

Python - Spyder 在使用 Pandas DataFrame 时挂起

python - 处理对象而不是模块重新加载的最佳方法

python - 如何在 Windows 上的 IPython 中启用输出文本突出显示?