Note: please dont mark it as duplicate, the previous question doesnt answer it completely.
This question has been answered partially in this link: plt.show() hangs on OSX with Anaconda Python
However, there is no mention of where does the matplotlibrc resides to change the option. Also, specially when we are invoking the notebook using ipython notebook command, where can we use pythonw to overcome the issue?
Any help will be appreciated.