Jupyter notebook安装Nbextensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter contrib nbextension install --user --skip-running-check
conda install yapf
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3eaebe1d124f3b1d1b5ad009258bcd99.png)
通用配置
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from IPython.core.interactiveshell import InteractiveShell
import openpyxl
InteractiveShell.ast_node_interactivity = "all"
pd.set_option('max_columns',1000)
pd.set_option('max_row',30)
pd.set_option('display.float_format', lambda x: '%.5f' % x)
%matplotlib inline
plt.rcParams['font.sans-serif'] = 'SimHei'
plt.rcParams['axes.unicode_minus'] = False
%config InlineBackend.figure_format = 'svg'