diff --git a/IPython/frontend.py b/IPython/frontend.py new file mode 100644 index 0000000..56edcfb --- /dev/null +++ b/IPython/frontend.py @@ -0,0 +1,11 @@ +import sys +import types + + +class ShimModule(types.ModuleType): + + def __getattribute__(self, key): + exec 'from IPython import %s' % key + return eval(key) + +sys.modules['IPython.frontend'] = ShimModule('frontend')