jinzishuai / learn2deeplearn

A repository of codes in learning deep learning
GNU General Public License v3.0
13 stars 1 forks source link

deeplearning.ai python code error with ipython #18

Open jinzishuai opened 6 years ago

jinzishuai commented 6 years ago
seki@seki-VirtualBox:~/src/learn2deeplearn/deeplearning.ai/C1.NN_DL/week2$ python3 Logistic+Regression+with+a+Neural+Network+mindset+v4.py 
Traceback (most recent call last):
  File "Logistic+Regression+with+a+Neural+Network+mindset+v4.py", line 36, in <module>
    get_ipython().magic('matplotlib inline')
NameError: name 'get_ipython' is not defined
jinzishuai commented 6 years ago

sudo apt install ipython3

and run it with

python3 Logistic+Regression+with+a+Neural+Network+mindset+v4.py
jinzishuai commented 6 years ago

New Error

mportError: IPython.kernel.zmq requires python-zmq >= 2.1.11
jinzishuai commented 6 years ago

Solution:

apt install python3-zmq
jinzishuai commented 6 years ago

Another Error


seki@seki-VirtualBox:~/src/learn2deeplearn/deeplearning.ai/C1.NN_DL/week2$ ipython3  Logistic+Regression+with+a+Neural+Network+mindset+v4.py

UsageError: Invalid GUI request 'inline', valid ones are:dict_keys(['qt4', 'pyglet', None, 'glut', 'gtk3', 'gtk', 'qt', 'wx', 'osx', 'tk', 'none'])seki@seki-VirtualBox:~/src/learn2deeplearn/deeplearning.ai/C1.NN_DL/week2$ 
jinzishuai commented 6 years ago

Install qtconsole

apt install ipython3-qtconsole