I\'ve recently started using sublimetext 2, however I noticed today that the plt.show() function doesn\'t seem to work when run within sublimetext.
If
Note in sublime text 3 (with anaconda package installed)
You need to add a custom build system as theta said, by:
first add a folder named python in \path\to\Sublime Text Build XXXX\Data\Packages
then put a file named python.sublime-build into that folder.
{
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"shell": true
}
and remember to add plt.show() like Roald said.
plt.imshow(image)
plt.show()
Demo: