我將Jupyter升級到了最新的5.0版本,它看起來像我的前端配置停止工作。如何在Jupyter 5.0中禁用自動引號和自動括號
我不明白爲什麼Jupyter自動關閉引號和括號默認情況下,我覺得很煩人。所以,在每個版本中,我必須更改設置以禁用它。
它使用創建一個文件~/.jupyter/custom/custom.js
,並添加下一個JavaScript代碼的工作:
require(['notebook/js/codecell'], function (codecell) {
codecell.CodeCell.options_default.cm_config.autoCloseBrackets = false;
})
我讀過,因爲Jupyter 4這個代碼可以通過下列方式改變:
IPython.CodeCell.options_default.cm_config.autoCloseBrackets = false;
但它看起來像Jupyter 5,前兩個選項停止工作。
我發現對於前端配置是沒有幫助的文檔(我會很高興,以提高一次我的理解):
http://jupyter-notebook.readthedocs.io/en/latest/frontend_config.html#frontend-config
誰能幫助我瞭解如何禁用自動Jupyter 5中的方括號和自動引號?
這是我運行的確切版本: