Thread: Pylab in IDLE 2.7
hi,
wondering if knows why cannot import pylab modules *.py file, can direct idle interface or terminal?
term:-
running same code in idle pylab.pycode:>>> pylab import * >>> plot([1,2,3,4]) [<matplotlib.lines.line2d object @ 0x3f2f610>] >>> show()
thankscode: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
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
Post a Comment