Reputation: 1
Not sure How to fix this.
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(IM.dtype # prints image type)?
plt.figure(figsize=(60,30))
IM = mh.imread('TestNodose.png') # Loads in image
print IM.dtype # prints image type
pylab.imshow(IM) # shows image
pylab.gray() # makes it greyscale
pylab.show()
Upvotes: 0
Views: 200
Reputation: 399
in python 2 print
don't need parenthesis, however you have to write them in python3.
The correct syntax is
print(IM.DTYPE)
because your jupyter notebook is using python 3
Upvotes: 0
Reputation: 603
This is basically syntax error.
Your notebook is using Python 3, and in Python 3 print
function require parenthesis. Correct syntax: print()
In python 2, we don't need the parenthesis.
Upvotes: 1