Jupyter notebook new cell type default

只愿长相守 提交于 2019-12-19 17:41:29

问题


When I use a jupyter notebook,

I would like new cells to be of type "markdown".

By default, the type of new cells is "code". Which config file should I modify and which variable should I change?


回答1:


Go to the site-packages directory of your python environment and modify site-packages/notebook/static/notebook/js/main.min.js

Find something like

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'
};

change default_cell_type: 'code' into default_cell_type: 'markdown'



来源:https://stackoverflow.com/questions/40382454/jupyter-notebook-new-cell-type-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!