Tag Archives: ipython

ipython notebook and matplotlib

In order to have the plots to be shown within a ipython notebook, you should include the following code at the beginning. %pylab inline%pylab inline Images may be tiny. You can set the size by playing with the matplotlib configuration … Continue reading

Posted in Python | Tagged , | Leave a comment

ipython error

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’/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/kernmagic/__init__.py in activate(ip, … Continue reading

Posted in Python | Tagged | Leave a comment