1.设置单元多个输出 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity = "all" 2.作图的基本设置 import matplotlib.pyplot as plt %matplotlib inline #画布在notebook中显示 %config InlineBackend.figure_format='svg'