millejoh / emacs-ipython-notebook

Jupyter notebook client in Emacs
http://millejoh.github.io/emacs-ipython-notebook/
GNU General Public License v3.0
1.47k stars 122 forks source link

Faces "leaking" out into output area. #855

Open indigoviolet opened 2 years ago

indigoviolet commented 2 years ago

This is probably in the bucket of polymode weirdness, but I notice occasionally that font lock and faces are leaking out into the output area. When data is printed in the output area, this can result in font lock thinking there are "unclosed quotes", and everything looks weird from there on.

I'd be happy with some ad hoc fix that I can deploy when I see this happening; but I am unable to trigger "re-fontification" of all cells and the output areas. If I disable and re-enable font-lock mode in the notebook buffer, all colors disappear, including in the cells.

Any suggestions? For instance, can I toggle font-lock in every (python-mode) cell?

Thanks for your work on ein!