我想要更改jupyterlab中所有单元的默认fontFamily。我可以在高级设置编辑器中编辑代码、markdown和原始单元格的配置。但是输出单元格仍然使用默认的SourceCodePro字体。有没有办法改变这一点呢?
发布于 2018-12-21 20:00:31
显然,这个功能还没有实现。查看此处:https://github.com/jupyterlab/jupyterlab/issues/5764
我首先安装了扩展jupyterlab-fonts,然后将文件~/.jupyter/lab/user-settings/@deathbeds/jupyterlab-fonts/fonts.jupyterlab-settings中的--jp-code-font-family参数更改为:
{
// Fonts
// @deathbeds/jupyterlab-fonts:fonts
// Settings for JupyterLab Fonts
// *********************************
// Global Styles
// JSS-compatible JSON applied to the Global scope
"styles": {
":root": {
"--jp-code-font-family": "monospace"
}
}
}发布于 2021-08-05 02:53:53
在jupyterlab中,打开settings > Theme,在overides change code-font-family上
{
"overrides": {
"code-font-family": "monospace",
"code-font-size": "13px"
}
}https://stackoverflow.com/questions/53771778
复制相似问题