Colabtools: How to disable blinking cursor in a cell?

Created on 7 Feb 2020  路  2Comments  路  Source: googlecolab/colabtools

It is very distractive.

For jupyter notebook I use the following script:

%%javascript
var rate = 0;
// apply setting to  all current CodeMirror instances
IPython.notebook.get_cells().map(
    function(c) {  return c.code_mirror.options.cursorBlinkRate=rate;  }
);
// make sure new CodeMirror instance also use this setting
CodeMirror.defaults.cursorBlinkRate=rate;
triaged

Most helpful comment

Also can't deal with a blinking cursor.

@al-yakubovich I have found a workaround for this. Using Firefox with the Stylus extension, make a custom CSS rule targeting research.google.com with this:

.focused .cursor {
    visibility: inherit !important;
    background-color: #ff009d !important;
}

(Colour change is optional but helps you see the cursor.)

All 2 comments

Thank you for the feature request. Tracking internally at b/149117189.

Also can't deal with a blinking cursor.

@al-yakubovich I have found a workaround for this. Using Firefox with the Stylus extension, make a custom CSS rule targeting research.google.com with this:

.focused .cursor {
    visibility: inherit !important;
    background-color: #ff009d !important;
}

(Colour change is optional but helps you see the cursor.)

Was this page helpful?
0 / 5 - 0 ratings