我尝试引用 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/