Jupyter 的安装和使用

安装: pip install --user jupyter
打开: 在Git bash 里 输入:jupyter notebook
$ jupyter notebook
[I 09:13:55.621 NotebookApp] Serving notebooks from local directory: C:\Users\inc970015
[I 09:13:55.621 NotebookApp] 0 active kernels
[I 09:13:55.621 NotebookApp] The Jupyter Notebook is running at:
[I 09:13:55.621 NotebookApp] http://localhost:8888/?token=54070f15c488bfe272f601c55735dc3c8384c36eb74a699c
[I 09:13:55.621 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:13:55.623 NotebookApp]
    Copy/paste this URL into your browser when you connect for the first time,   to login with a token:  http://localhost:8888/?token=54070f15c488bfe272f601c55735dc3c8384c36eb74a699c&token=54070f15c488bfe272f601c55735dc3c8384c36eb74a699c

在浏览器里打开 http://localhost:8888/ , 然后new一个 notebook。

到此为止,就可以在页面上输入 python命令, 按 shift+enter运行它。
# In[1]:
import numpy as np
a = np.array( [ 1,2,3])
b = np.array([[1],[2],[3]])
c = np.dot( a , b )

# In[2]:

c

array([14])

 
 

猜你喜欢

转载自blog.csdn.net/brooknew/article/details/80908123