Jupyter, change prompt colors

Is there a way to change the prompt color dynamically in Jupyter? This is to give a visual indication of an input mode. Another way to indicate this might also work, e.g. changing the prompt text.

It appears that neither of these is mentioned in the IJulia module.

(Maybe a Jupyter tag or category or s.t. would be useful. Or more broadly UI, or …)

macro javascript_str(s) display("text/javascript", s) end

javascript"""
$("div.input_prompt").css({"color": "cyan"})
"""
2 Likes

Thanks. It looks like this will work.