innovationOUtside / nb_extension_empinken

Jupyter notebook extension for background colouring selected cells
MIT License
1 stars 0 forks source link

Styling intermittently not applied on large notebooks #11

Open psychemedia opened 3 years ago

psychemedia commented 3 years ago

In large notebooks particularly, cells are occasionally not coloured.

I'm not sure if this is the extension running before the notebook is fully loaded, or some interaction with other extensions.

Possibly related issues:

Possible fix eg in picking up a late event here: https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/a186b18efaa1f55fba64f08cd9d8bf85cba56d25/src/jupyter_contrib_nbextensions/nbextensions/freeze/main.js#L184 But I really don't understand how anything works any more.

Some cribs on rewriting using promises in eg https://github.com/ipython-contrib/jupyter_contrib_nbextensions/blob/master/src/jupyter_contrib_nbextensions/nbextensions/collapsible_headings/main.js as to how to rewrite things using promises etc.