NameError: name 'get_ipython' is not defined

前端 未结 3 615
终归单人心
终归单人心 2020-12-13 08:42

I am working on Caffe framework and using PyCaffe interface. I am using a Python script obtained from converting the IPython Notebook 00-classification.ipynb

3条回答
  •  难免孤独
    2020-12-13 09:15

    If your intention is to run converted .py file notebook then you should just comment out get_ipython() statements. The matlibplot output can't be shown inside console so you would have some work to do . Ideally, iPython shouldn't have generated these statements. You can use following to show plots:

    plt.show(block=True)
    

提交回复
热议问题