2016-12-26 102 views
5

我想用交互式matplotlib圖創建筆記本。我可以顯示靜態地塊(%matplotlib inline工作正常),但%matplotlib notebook沒有數字顯示,不在筆記本內或作爲彈出窗口。安裝jupyter「%matplotlib notebook」not showing plot

暢達的IPython 5.1.0, jupyter 4.0.6 matplotlib 2.0( '2.0.0b4 + 2344.g7b27a1b')

這裏是筆記本https://github.com/fedhere/notebookTests/blob/master/mplnotebook_test.ipynb

我究竟做錯了什麼?謝謝

+0

IPython 5.1.0,jupyter 4.2.1和matplotlib 1.5.1(python3)對我來說工作正常。 是python2還是python3? – Lucas

+0

既不可悲,但上面的參數是python3 – fbb

+0

它適用於python 2.7上的jupyter 4.0.6和matplotlib 1.5。請注意,將後端從內聯更改爲筆記本可能無法始終正常工作,即使使用新啓動的內核,也會發生此問題嗎?另見[這個問題](http://stackoverflow.com/questions/41342452/why-does-matplotlib-pyploy-imshow-change-it-axes)。 – ImportanceOfBeingErnest

回答

4

問題在於matplotlib 2 beta & rc版本。我以爲我已經用matplotlib1.5進行了測試,但我仍然加載了matplotlib2。我正在報告它there