Jupyter Notebook新电池类型默认 [英] Jupyter notebook new cell type default
本文介绍了Jupyter Notebook新电池类型默认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用 jupyter笔记本时,
我希望新单元格的类型为"markdown".
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?
推荐答案
转到python环境的site-packages
目录并修改site-packages/notebook/static/notebook/js/main.min.js
Go to the site-packages
directory of your python environment and modify 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'
这篇关于Jupyter Notebook新电池类型默认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文