前往Python环境的site-packages
目录,并修改site-packages/notebook/static/notebook/js/main.min.js
查找类似于以下内容:
Notebook.options_default = {
// can be any cell type, or the special values of
// 'above', 'below', or 'selected' to get the value from another cell.
default_cell_type: 'code'
};
将 default_cell_type: 'code'
更改为 default_cell_type: 'markdown'
设置 ->高级设置管理器 ->笔记本
,然后在"用户首选项"中添加以下内容:{
"defaultCell": "markdown"
}