为什么jupyter会给出UsageError:找不到行魔术函数`%`?

时间:2019-06-01 20:30:27

标签: python-3.x jupyter-notebook seaborn

我想在木星笔记本上画些东西

它可以在Jupiter笔记本电脑讲师版中使用,但我听不到 可以作为新手使用。

import seaborn as sns
import matplotlib.pyplot as plt
% matplotlib inline

sns.lmplot(x='sq__ft', y='price', data=shd)
plt.show()
sns.lmplot(x='beds', y='price', data=shd)
plt.show()
sns.lmplot(x='baths', y='price', data=shd)
plt.show()

输出

UsageError: Line magic function `%` not found.

我想得到一个漂亮的情节。

0 个答案:

没有答案
相关问题