Skip to main content

Thread: Pylab in IDLE 2.7


hi,

wondering if knows why cannot import pylab modules *.py file, can direct idle interface or terminal?

term:-
code:
>>> pylab import *  >>> plot([1,2,3,4])  [<matplotlib.lines.line2d object @ 0x3f2f610>]  >>> show()
running same code in idle pylab.py
code:
traceback (most recent call last):    file "/home/layolayo/documents/python projects/pylab.py", line 1, in <module>      pylab import *    file "/home/layolayo/documents/python projects/pylab.py", line 2, in <module>      plot([1,2,3,4])  nameerror: name 'plot' not defined
thanks

layolayo

the name of file identical 1 of module. when try import, python chooses 1 in current directory. try renaming file different name.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] Pylab in IDLE 2.7


Ubuntu

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?