I suspect that in many cases, people might not want to import IPython to test whether their code is running in an IPython session. Do we have a convenient and official way to do that?