SpencerPark / IJava

A Jupyter kernel for executing Java code.
MIT License
1.1k stars 215 forks source link

Syntax highlighting missing in some cells #67

Open sandeepchin opened 5 years ago

sandeepchin commented 5 years ago

syntaxissue Hello,

I installed java kernel successfully. However, the syntax highlighting only works in the first cell. After that all the code appears monochrome. Please see the attached screenshot. What can I do to change this?

SpencerPark commented 5 years ago

Hi @sandeepchin, I believe this bug is upstream in jupyter-notebook or similar. I run into this from time to time as well but can't seem to pin down a way to reliably reproduce it. See also #46 which mentions the same issue.

If you change the notebook kernel to something else and change it back to java, it re-highlights the cells. Not that this is a reliable fix, just some additional information if you endeavor to try and track this bug down.

kyagrd commented 4 years ago

See https://github.com/SpencerPark/IJava/issues/101#issuecomment-666037959