为内联Retina Matplotlib数据配置Jupyter笔记本 [英] Configuring Jupyter notebooks for inline Retina Matplotlib figures
本文介绍了为内联Retina Matplotlib数据配置Jupyter笔记本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望效果
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format='retina'
全部启动时我的Jupyter笔记本,但我无法弄清楚当前方法是什么来完成这个。这里和其他地方有很多答案,但我找不到任何答案似乎都是最新的。
at the launch of all my Jupyter notebooks, but I can't figure out what the current approach is for accomplishing this. There are many answers here and elsewhere, but none that I can find seem to be up to date.
如何在当前>中完成上述工作强大的Jupyter笔记本版本(但一般不是IPython!):我应该在哪些设置中应用我应该放入的配置文件?
How do I accomplish the above in the current versions of Jupyter notebooks (but not IPython generally!): what settings should I apply where is the configuration file I should put them in?
我试过了
c.InteractiveShellApp.matplotlib = "inline"
c.InlineBackend.figure_formats = set(['retina'])
in
~/.jupyter/jupyter_notebook_config.py
但这没有效果。
推荐答案
我有
c.IPKernelApp.matplotlib = 'inline'
c.InlineBackend.figure_format = 'retina'
在我的〜/ .ipython / profile_default / ipython_kernel_config.py
。
这篇关于为内联Retina Matplotlib数据配置Jupyter笔记本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文