2024-06-11 16:10:50 发布
网友
我见过how to change the configuration of ipython临时或永久使用命令行参数或修改{}。在
我的问题是,如何像ipython_qtconsole_config.py那样获得当前配置:
ipython_qtconsole_config.py
c = get_config() c.IPythonWidget.font_family = 'Consolas'
我可以import IPython,但不知道该怎么办。。。在
import IPython
您可以通过get_ipython().config访问它:
get_ipython().config
get_ipython().config['IPythonWidget']['font_family']
示例:
您可以通过
get_ipython().config
访问它:示例:
^{pr2}$相关问题 更多 >
编程相关推荐