Replace / remove highlighting in Jupyter Notebook with custom theme

后端 未结 1 753
醉话见心
醉话见心 2021-01-26 11:03

It\'s clear that the selection is for readability, but it seems too glaring to me.

A set of themes for Jupyter

How can I edit the configuration and change the tr

相关标签:
1条回答
  • 2021-01-26 11:40

    The CSS selector for matching brackets is div.CodeMirror span.CodeMirror-matchingbracket

    So, you can change the colour of the bracket itself and the background colour of the bracket by putting the following code into your custom.css file (~/.jupyter/custom/custom.css)

    div.CodeMirror span.CodeMirror-matchingbracket {
        color: #INSERT-YOUR-DESIRED-BRACKET-COLOUR-HERE ;
        background-color: #INSERT-YOUR-DESIRED-BRACKET-BACKGROUND-COLOUR-HERE ;
    }
    
    0 讨论(0)
提交回复
热议问题