2016-01-20 76 views
2

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

这等同于下面的配置文件:

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

回答

2

这工作:manager.start_new_kernel(extra_arguments = [ “ - 颜色= 'NOCOLOR'”])