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}]
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jupyter/1fbbf974-f18e-4480-9b1a-4200702b7ed7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.