문제

I'm using IPython notebooks to share code and (hopefully) graphics with m collaborators. sadly, I cannot get matplotlib to plot inside the notebook, it always gives me a pop-up window, which I obviously cannot include in notebook pastes or similar.

Here's two minimal examples of how I go about plotting things.

Either with invoking plt.show() , or without it.

this either gives me an external pop-up, or plots nothing.

도움이 되었습니까?

해결책

You need to be using the matplotlib inline backend.

%matplotlib inline
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top