【问题标题】:How to change monokai pygments style in qtconsole with jupyter如何使用 jupyter 在 qtconsole 中更改 monokai pygments 样式
【发布时间】:2017-09-03 11:59:01
【问题描述】:

在使用 python 时,如何更改 monokai pygments 样式,以便在 jupyter qtconsole 中以较浅的颜色打印错误?

请参阅随附的屏幕截图,特别注意错误类型 (AttributeError) 为深红色,函数参数、类/模块分隔符和括号为不可读的深蓝色,甚至关键字在回溯中可能使用浅绿色。

jupyter qtconsole with monokai and python

【问题讨论】:

    标签: python macos jupyter pygments qtconsole


    【解决方案1】:

    这个How do I change the highlight color style of the code in the IPython(Jupyter)? 似乎提供了一个合理的选择。使用 %colors Linux 改变了堆栈跟踪的语法突出显示方式,并且仍然保持我的 molokai 风格适用于其余代码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-07-14
      • 1970-01-01
      • 2012-11-04
      • 1970-01-01
      • 1970-01-01
      • 2017-09-06
      • 1970-01-01
      相关资源
      最近更新 更多