1、打开jupyterLab,左键单击【Settings】,选择【Advanced Settings Editor】
2、在上一步弹出来的页面中,左键单击【Notebook】,然后在右侧的【User Overrides】中进行增删改,这个地方就是自定义字体设置的地方。
参考代码如下:
{
// Notebook
// @jupyterlab/notebook-extension:tracker
// Notebook settings.
// **************************************
// Code Cell Configuration
// The configuration for all code cells.
"codeCellConfig": {
"autoClosingBrackets": true,
"fontFamily": null,
"fontSize": 15,
"lineHeight": null,
"lineNumbers": true,
"lineWrap": "off",
"matchBrackets": true,
"readOnly": false,
"insertSpaces": true,
"tabSize": 4,
"wordWrapColumn": 80
},
// Markdown Cell Configuration
// The configuration for all markdown cells.
"markdownCellConfig": {
"autoClosingBrackets": false,
"fontFamily": null,
"fontSize": 15,
"lineHeight": null,
"lineNumbers": false,
"lineWrap": "on",
"matchBrackets": false,
"readOnly": false,
"insertSpaces": true,
"tabSize": 4,
"wordWrapColumn": 80
},
// Raw Cell Configuration
// The configuration for all raw cells.
"rawCellConfig": {
"autoClosingBrackets": false,
"fontFamily": null,
"fontSize": 15,
"lineHeight": null,
"lineNumbers": false,
"lineWrap": "on",
"matchBrackets": false,
"readOnly": false,
"insertSpaces": true,
"tabSize": 4,
"wordWrapColumn": 80
}
}