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