从jupyter_client.manager配置IPython

时间:2016-01-20 16:48:11

标签: ipython jupyter jupyter-notebook

如何在不设置.ipython目录中的默认配置文件的情况下,通过jupyter_client.manager.start_new_kernel()添加配置来启动内核?我想将shell颜色设置为NoColor'无需设置配置文件并初始化特定的格式化程序。

这相当于以下配置文件:

c = get_config()
c.InteractiveShell.colors = 'NoColor'

1 个答案:

答案 0 :(得分:2)

这有效:manager.start_new_kernel(extra_arguments = [“ - colors ='NoColor'”])