启动jupyter lab时,报了一下错:
[W 2024-09-12 09:07:56.099 LabApp] Failed validating settings (@jupyterlab/filebrowser-extension:browser): Additional properties are not allowed ('showFileCheckboxes', 'showFileSizeColumn', 'showFullPath', 'sortNotebooksFirst' were unexpected)
然后后面就跟了一大堆js的 “Failed validating 'additionalProperties' in schema:”,仔细分析后发现,这个错误应该是因为前几天我安装了缺失的插件 “jupyter_contrib_nbextensions” 和 “jupyter_nbextensions_configurator”引起的新问题。
具体原因是这两个插件的安装过程修改了文件: "~/.jupyter/lab/user-settings/@jupyterlab/filebrowser-extension/browser.jupyterlab-settings" 里的配置
按图索骥它不是说'showFileCheckboxes', 'showFileSizeColumn', 'showFullPath', 'sortNotebooksFirst' were unexpected嘛,那我在jupyter的插件配置里把它干掉就可以了
好家伙,果然,这几个属性不服帖当前的jupyter lab版本,直接屏蔽后问题解决!
{
// File Browser
// @jupyterlab/filebrowser-extension:browser
// File Browser settings.
// *****************************************// Use checkboxes to select items
// Whether to show checkboxes next to files and folders
"showFileCheckboxes": true,// Show file size column
// Whether to show the file size column
"showFileSizeColumn": true,// Show full path in browser bread crumbs
// Whether to show full path in browser bread crumbs
"showFullPath": true,// When sorting by name, group notebooks before other files
// Whether to group the notebooks away from files
"sortNotebooksFirst": true
}