问题描述
我只是想获得Jupyterlab版本1.1.4来将代码包装在单元格中.
I am simply trying to get Jupyterlab Version 1.1.4 to wrap code in cells.
我使用AdvancedSettingsEditor实施此处找到的解决方案:在JupyterLab代码编辑器中启用自动换行
I use the AdvancedSettingsEditor to implement the solution found here:Enable word wrap in JupyterLab code editor
但是我得到一个错误
codeCellConfig is not a valid property
,因此AdvancedSettingsEditor不允许我保存更新的配置文件.
and the AdvancedSettingsEditor will therefore not permit me to save the updated config file.
如果我可以看到有效属性的列表(可能取决于JupyterLab版本),则可以进行一些反复试验.但是我找不到这样的列表.
If I could see the list of valid properties (perhaps dependent on JupyterLab version), I'd be able to do some trial and error. However I have not been able to find such a list.
我将以下文本放在AdvancedSettigsEditor为我打开的文件中:
I put the following text in the file opened for me by the AdvancedSettigsEditor:
{
//"definitions": {
//"editorConfig": {
// "properties": {
"codeCellConfig": {
"lineWrap": "wordWrapColumn",
"wordWrapColumn": 80
}
//}
//}
//}
}
根据此处找到的信息,注释掉的属性都是为了使这项工作有效的尝试: https://github.com/jupyterlab/jupyterlab/issues/5277
The commented out properties were all attempts to make this work given the information found here:https://github.com/jupyterlab/jupyterlab/issues/5277
它们都因相同的错误而失败
They all fail with the same error
<whatever_the_property_name> is not a valid property
问题:
- 如何获得Jupyterlab 1.1.4版将代码包装在代码单元中?
- 配置文件实际位于何处(在Windows上)?
- 在哪里可以找到对该配置文件有效的属性列表?
推荐答案
这是部分答案.
当我发布上述问题时,我没有注意到,尽管出现了,高级设置编辑器"实际上并没有打开文本文件供您更改所需的任何设置.
When I posted the above question I failed to notice that despite appearances, the Advanced Settings Editor doesn't actually open a text file for you to change any setting you like.
相反,它为您提供了一个文本文件的片段.哪个片段取决于从左侧列表中选择的设置类别.似乎可以更改任何设置的自由格式文本文件的令人迷惑的外观使我忽略了左侧的列表.
Rather, it gives you a fragment of a text file. Which fragment depends on the category of setting selected from a list which appears on the left hand side. The beguiling appearance of what seemed to be a free form text file on which any setting could be changed led me to overlook the list on the left hand side.
一旦我注意到上述列表,便从中选择笔记本",在这里可以修改"codeCellConfig"设置,而不会产生任何投诉.
Once I noticed said list, I selected "Notebook" from it and this is where the "codeCellConfig" setting can be amended without complaints.
但是仍然有一个问题:
- 在哪里可以找到每个设置类别的所有属性及其所有有效设置的列表?
这篇关于如何在JupyterLab版本1.1.4上的单元格中包装代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!