python - 更改 Jupyter QtConsole 设置

标签 python jupyter

是否可以对 Windows 7 上的默认设置进行永久性更改? 我想更改字体大小和外壳大小。

最佳答案

有关配置 ipython 命令行应用程序的说明是 here在 IPython 的网站上。特别是配置字体大小的分步说明:

首先,创建 IPython 配置文件。只需运行 IPython 或 IPython 的 QtConsole 即可为您完成此操作,但如果您必须手动操作,请运行

ipython profile create

其次,创建一个 IPython 配置文件:

  • Windows - %USERPROFILE%\.ipython\profile_default\ipython_config.py
  • Linux 或 OS X - ~/.ipython/profile_default/ipython_config.py

IPython 内容示例:

c = get_config()

c.IPythonWidget.font_size = 11
c.IPythonWidget.font_family = 'Consolas'

ipython.org 上有更详细的示例配置文件.

关于python - 更改 Jupyter QtConsole 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9906938/

相关文章:

Jupyter 无法连接到内核

python - 基于共享 key 组合数据帧

python - VS Code 编辑 .ipynb 文件 : How to collapse notebook cells?

python - 如何计算减少点的个数?

python - 使用 PyYAML 用单引号括起来的单个字符串

python - pycharm/intellij - jupyter markdown 不渲染

jupyter-notebook - 从 papermill 生成的笔记本可以用实时运行的内核输出吗?

ipython - 使用iFrame将本地pdf图像嵌入jupyter笔记本中只会产生一个灰色框

python - 覆盖 __init__ 中参数的类型提示

python - 结合 Spark Streaming + MLlib