Python学习笔记:jupyter notebook设置自动换行


修改 jupyter notebook 配置文件即可实现。

1.配置文件路径

cmd 中查看 jupyter 的配置文件路径,一般都是 .jupyter 的文件夹。

jupyter --config-dir
# C:\Users\Hider\.jupyter

2.打开文件

nbconfig/notebook.json

文件及路径不存在时,自行创建。

3.添加配置

添加一下代码,保存为 json 格式。

{
  "MarkdownCell": {
    "cm_config": {
      "lineWrapping": true
    }
  },
  "CodeCell": {
    "cm_config": {
      "lineWrapping": true
    }
  }
}

4.重启 jupyter notebook

搞定!!!

参考连接:jupyter notebook中能不能自动换行?


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM