gpt4 book ai didi

python-2.7 - 配置Jupyter笔记本以获取Retina Matplotlib数字

转载 作者:行者123 更新时间:2023-12-03 15:01:13 24 4
gpt4 key购买 nike

我想要的效果

import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format='retina'


在我所有的Jupyter笔记本电脑推出时,但我不知道当前实现此目的的方法是什么。这里和其他地方都有很多答案,但我找不到任何答案是最新的。

如何在当前版本的Jupyter笔记本电脑(但通常不是IPython)中完成上述操作:我应该应用哪些设置,应将配置文件放在哪里?



我试过了

c.InteractiveShellApp.matplotlib = "inline"
c.InlineBackend.figure_formats = set(['retina'])




~/.jupyter/jupyter_notebook_config.py


但这没有效果。

最佳答案

我有

c.IPKernelApp.matplotlib = 'inline'
c.InlineBackend.figure_format = 'retina'


在我的 ~/.ipython/profile_default/ipython_kernel_config.py中。

关于python-2.7 - 配置Jupyter笔记本以获取Retina Matplotlib数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36360015/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com