do not inject self in namespace

Back to back with https://github.com/ipython/ipython/pull/7273