I have tried customize it via ~/.jupyter/custom/custom.css
, but it’s no effect in JupyterLab.
I try this custom.css
and many many other variation:
.jp-ThemedContainer.jp-CodeMirror-editor .CodeMirror-line {
line-height: 0.8 !important;
}
or
div.jp-ThemedContainer.cm-cell.cm-editor {
line-height: 0.8; /* или любое другое значение */
}
or
:root {
--jp-code-line-height: 0.8;
}
Example piece of code for custom.css
from docs (interface_customization.html#jupyter-styling) works well.
I also try edit variable --jp-code-line-height
at index.css
in C:\ProgramData\anaconda3\envs\<my_conda_env_name>\share\jupyter\lab\themes\@jupyterlab\theme-light-extension
, but it’s no effect. However editing --jp-content-line-height
at index.css
take effect on output text under cells.
I also try some extensions for this purpose.
Extension jupyterlab-fonts
can properly adjust fonts and line height only for output cells. Adjusting line height for code has no effect.
I suppose changings described here affect to jupyterlab-fonts
and other examples of custom.css
, which I was able to find on GitHub.
I would be grateful for any help!