1. 找到site-package的位置
python3 -m site
2. 在terminal中输入
open /opt/homebrew/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
3. find: site-packages/notebook/static/notebook/js/main.min.js
4. find:
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'
};
5. change default_cell_type: 'code'
into default_cell_type: 'markdown'