python - pylab.plot exists but can't be imported? -
edit: example comes directly "ein" documentation ipython notebooks in emacs: https://github.com/tkf/emacs-ipython-notebook
with fresh installation of ipython on mac os yosemite:
ipython
python 2.7.9 (default, feb 12 2015, 17:01:13) type "copyright", "credits" or "license" more information. ipython 3.1.0 -- enhanced interactive python. ? -> introduction , overview of ipython's features. %quickref -> quick reference. -> python's own system. object? -> details 'object', use 'object??' details.
in [1]: %pylab
using matplotlib backend: macosx populating interactive namespace numpy , matplotlib
in [2]: dir(pylab)
long spew, verified 'plot'
in list
in [3]: pylab import plot
--------------------------------------------------------------------------- importerror traceback (most recent call last) <ipython-input-3-8618f02f2b7e> in <module>() ----> 1 pylab import plot importerror: cannot import name plot
no idea what's wrong. googled exact error message , didn't see helpful.
Comments
Post a Comment