Suppress output of object when plotting in ipython
You can also add plt.show()
:
plt.hist(OIR['Range'], bins, named=True, histtype='bar')
plt.show()
Assign the return value to a variable (which I call _
to indicate it's unused):
_ = plt.hist(...)
just put ;
after the code.
It works only in ipython-notebook.
plt.hist(...);