jupyter-notebook - Jupyter Notebook新电池类型默认

标签 jupyter-notebook

当我使用jupyter notebook时,

我希望新单元格的类型为“markdown”。

默认情况下,新单元格的类型为“代码”。我应该修改哪个配置文件以及应该更改哪个变量?

最佳答案

转到您的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'

关于jupyter-notebook - Jupyter Notebook新电池类型默认,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40382454/

相关文章:

python - 包的导入可以在 IPython shell 中使用,但不能在 Jupyter Notebook 中使用

jupyter-notebook - 如何在不打开网络浏览器的情况下从终端编辑 jupyter notebook?

python - 属性错误: 'LGBMRegressor' object has no attribute 'feature_name_'

python - 如何在python中给出jupyter单元标准输入?

visual-studio-code - VS Code - 如何为工作区选择 Jupyter 内核?

jupyter-notebook - 如何在 Google Colab 中禁用执行信息(执行时间戳、运行时间、用户等)?

python - Ipywidgets 生态系统中用于中断循环的停止按钮

python-3.x - 如何在 ipython/jupyter 中将小部件添加到容器小部件

python - jupyter notebook 不断重新连接

python - 将 Ipython Notebook 与 DataNitro 结合使用