If you get this kind of error when starting ipython:
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/kernmagic/__init__.py in activate(ip, *args) 14 continue 15 magic_name = name[len('magic_'):] ---> 16 ip.shell.define_magic(magic_name, getattr(mymagics, name)) 17 18 def activate_aliases(ip, *args): AttributeError: 'TerminalInteractiveShell' object has no attribute 'shell' |
you may solve the problem by deleting the special directory .ipython in your home directory. It worked for me at least. Of course you lose you previous ipython configuration. A new directory will be created by ipython.
Please follow and like us: