Jupyter notebook 新单元格类型默认
Jupyter notebook new cell type default
当我使用 jupyter notebook,
我希望新单元格的类型为 "markdown"。
默认情况下,新单元格的类型是"code"。我应该修改哪个配置文件,我应该更改哪个变量?
转到您的 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'
在 JupyterLab 中,您可以转到 Settings -> Advanced Settings manager -> Notebook
,然后在“用户首选项”中添加以下内容:
{
"defaultCell": "markdown"
}
当我使用 jupyter notebook,
我希望新单元格的类型为 "markdown"。
默认情况下,新单元格的类型是"code"。我应该修改哪个配置文件,我应该更改哪个变量?
转到您的 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'
在 JupyterLab 中,您可以转到 Settings -> Advanced Settings manager -> Notebook
,然后在“用户首选项”中添加以下内容:
{
"defaultCell": "markdown"
}