I use jupyter_client to execute some python code `range?`, and the result has some special characters as following which I believe it is for font color. Because I notice the font color when I run `range?` in ipython.
Could you anyone point me how jupyter recognize the font color via these specia characters ? Is there standards for that ? Thanks
[{'data': {'text/plain': '\x1b[0;31mInit signature:\x1b[0m \x1b[0mrange\x1b[0m\x1b[0;34m(\x1b[0m\x1b[0mself\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0;34m/\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0;34m*\x1b[0m\x1b[0margs\x1b[0m\x1b[0;34m,\x1b[0m \x1b[0;34m**\x1b[0m\x1b[0mkwargs\x1b[0m\x1b[0;34m)\x1b[0m\x1b[0;34m\x1b[0m\x1b[0m\n\x1b[0;31mDocstring:\x1b[0m \nrange(stop) -> range object\nrange(start, stop[, step]) -> range object\n\nReturn an object that produces a sequence of integers from start (inclusive)\nto stop (exclusive) by step. range(i, j) produces i, i+1, i+2, ..., j-1.\nstart defaults to 0, and stop is omitted! range(4) produces 0, 1, 2, 3.\nThese are exactly the valid indices for a list of 4 elements.\nWhen step is given, it specifies the increment (or decrement).\n\x1b[0;31mType:\x1b[0m type\n'},
'source': 'page',
'start': 0}]