打开jupyter notebook警告问题

打开jupyter notebook有以下两行警告
'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
如图1

img

请问各位如何处理,可笑的是我利用cmd直接输入jupyter notebook就没有这两行警告,
如图2

img

求解答,谢谢

打开【.jupyter】文件夹下的配置文件【jupyter_notebook_config.py】,并将配置文件中的NotebookApp全部替换为ServerApp

在Anaconda promot里面(不是CMD)输入命令“jupyter notebook --generate-config”就可以生成jupyter_lab_config.py