Well, the current de facto standard is

```python
try:
    ip = get_ipython()
except NameError:
    ip = None
```

But this is only true for code called from within the builtins_trap, which we found can be *not* true in some cases, such as when loading extensions at startup, etc.

How else can we provide a function for checking IPython, other than a function imported from IPython or injected into builtins?