从jupyter_client.manager配置IPython

3
我应该如何在不设置默认配置文件的情况下,通过 jupyter_client.manager.start_new_kernel() 添加配置来启动内核?我想将shell颜色设置为“无色”而不设置配置文件,并初始化特定格式化程序。
这相当于以下配置文件:
c = get_config()
c.InteractiveShell.colors = 'NoColor'
1个回答

3
这样做有效:manager.start_new_kernel(extra_arguments=["--colors='NoColor'"])

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接