亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Windows下的Jupyter Notebook 安裝與自定義啟動(圖文詳解)

 更新時間:2018年02月21日 18:27:55   投稿:mdxy-dxy  
這篇文章主要介紹了Windows下的Jupyter Notebook 安裝與自定義啟動(圖文詳解),需要的朋友可以參考下

腳本之家小編注:如果不是特殊需要建議安裝 Anaconda3 即可,自帶Jupyter Notebook 。

手動安裝之前建議查看這篇文章:http://chabaoo.cn/article/135171.htm

這是我自定義的Python 的安裝目錄 (D:\SoftWare\Python\Python36\Scripts)

1、Jupyter Notebook 和 pip

  為了更加方便地寫 Python 代碼,還需要安裝 Jupyter notebook。 利用 pip 安裝 Jupyter notebook。
  為什么要使用 Jupyter?參考: https://www.zhihu.com/question/37490497

  pip: Python 的包管理工具,安裝 Python 的同時已經(jīng)安裝好了。
  Jupyter notebook: 一個交互式筆記本,支持運行 40 多種編程語言。 利用她來寫 Python,代碼和運行結(jié)果都可以保存下載,十分方便。

2、Jupyter notebook 安裝

  命令行窗口輸入: pip install jupyter
  切換到 D:\SoftWare\Python\Python36\Scripts目錄下,

  當(dāng)然,若大家是默認(rèn)安裝的話,則在C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Scripts 目錄下 。

   或者將該目錄添加到 path,就不用切換了。
  我這里,因為考慮到機器學(xué)習(xí)深度學(xué)習(xí)那邊,已經(jīng)安裝了Anaconda2和Anaconda3,所以這邊的數(shù)據(jù)分析所用的python3.6.1就不添加到path了。每次去切換到這個目錄來,也不麻煩。

Microsoft Windows [版本 6.1.7601]
版權(quán)所有 (c) 2009 Microsoft Corporation。保留所有權(quán)利。

C:\Users\Administrator>cd /d D:\

D:\>cd D:\SoftWare\Python\Python36\Scripts

D:\SoftWare\Python\Python36\Scripts>pip install jupyter

 

  

 

 

安裝成功。

3、 jupyter notebook的啟動

命令行窗口輸入: jupyter notebook

D:\SoftWare\Python\Python36\Scripts>jupyter notebook
[I 10:37:02.828 NotebookApp] Serving notebooks from local directory: D:\SoftWare
\Python\Python36\Scripts
[I 10:37:02.828 NotebookApp] 0 active kernels
[I 10:37:02.828 NotebookApp] The Jupyter Notebook is running at: http://localhos
t:8888/?token=8f82159edecad826ce9769f126402fc58f5b87b8d1050b0d
[I 10:37:02.829 NotebookApp] Use Control-C to stop this server and shut down all
kernels (twice to skip confirmation).
[C 10:37:02.833 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=8f82159edecad826ce9769f126402fc58f5b87b8d10
50b0d
[I 10:37:03.628 NotebookApp] 302 GET / (::1) 1.00ms
[I 10:37:03.647 NotebookApp] 302 GET /tree? (::1) 5.00ms
[I 10:37:05.535 NotebookApp] Accepting one-time-token-authenticated connection f
rom ::1

同時,默認(rèn)瀏覽器會打開 Jupyter notebook 窗口。 說明 Jupyter notebook 安裝成功了。

 

 

4、配置 Jupyter notebook

jupyter notebook --generate-config

運行之前

打開“.jupyter”文件夾,可以看到里面有個配置文件。

Microsoft Windows [版本 6.1.7601]
版權(quán)所有 (c) 2009 Microsoft Corporation。保留所有權(quán)利。

C:\Users\Administrator>cd /d D:\

D:\>cd D:\SoftWare\Python\Python36\Scripts

D:\SoftWare\Python\Python36\Scripts>jupyter notebook --generate-config
Writing default config to: C:\Users\Administrator\.jupyter\jupyter_notebook_conf
ig.py

D:\SoftWare\Python\Python36\Scripts>

修改jupyter_notebook_config.py配置文件

 打開這個配置文件,找到“c.NotebookApp.notebook_dir=……”,把路徑改成自己的工作目錄。

比如,這里要變更為

## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'D:\Code\jupyter-notebook'

,當(dāng)然,文件夾 jupyter-notebook 需要自己創(chuàng)建好。

配置文件修改完成后, 以后在 jupyter notebook 中寫的代碼等都會保存在自己創(chuàng)建的目錄中。

jupyter notebook的自定義啟動(變了)
  配置文件修改成后,就可以啟動 jupyter notebook 了,命令行窗口中輸入 jupyter notebook,
  默認(rèn)瀏覽器就會打開一個頁面

jupyter notebook的啟動
  命令行窗口輸入: jupyter notebook

  以前是

D:\SoftWare\Python\Python36\Scripts>jupyter notebook
[I 10:37:02.828 NotebookApp] Serving notebooks from local directory: D:\SoftWare
\Python\Python36\Scripts
[I 10:37:02.828 NotebookApp] 0 active kernels
[I 10:37:02.828 NotebookApp] The Jupyter Notebook is running at: http://localhos
t:8888/?token=8f82159edecad826ce9769f126402fc58f5b87b8d1050b0d
[I 10:37:02.829 NotebookApp] Use Control-C to stop this server and shut down all
kernels (twice to skip confirmation).
[C 10:37:02.833 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=8f82159edecad826ce9769f126402fc58f5b87b8d10
50b0d
[I 10:37:03.628 NotebookApp] 302 GET / (::1) 1.00ms
[I 10:37:03.647 NotebookApp] 302 GET /tree? (::1) 5.00ms
[I 10:37:05.535 NotebookApp] Accepting one-time-token-authenticated connection f
rom ::1

現(xiàn)在是

Microsoft Windows [版本 6.1.7601]
版權(quán)所有 (c) 2009 Microsoft Corporation。保留所有權(quán)利。

C:\Users\Administrator>cd /d D:\

D:\>cd D:\SoftWare\Python\Python36\Scripts

D:\SoftWare\Python\Python36\Scripts>jupyter notebook
[I 10:59:58.326 NotebookApp] Serving notebooks from local directory: D:\Code\jup
yter-notebook
[I 10:59:58.327 NotebookApp] 0 active kernels
[I 10:59:58.327 NotebookApp] The Jupyter Notebook is running at: http://localhos
t:8888/?token=e520d165636db926b824bd77fe81559555ff679cc5fdc774
[I 10:59:58.328 NotebookApp] Use Control-C to stop this server and shut down all
kernels (twice to skip confirmation).
[C 10:59:58.332 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=e520d165636db926b824bd77fe81559555ff679cc5f
dc774
[I 10:59:59.532 NotebookApp] Accepting one-time-token-authenticated connection f
rom ::1

當(dāng)然,其實啊,這個玩意非常的簡單和方便。關(guān)于修改名字、上傳等操作

常見問題及解決方案

如何添加 Path?
計算機-右擊-單機“屬性”

單機“高級系統(tǒng)設(shè)置”

常見問題及解決方案

如何添加 Path?
計算機-右擊-單機“屬性”

單機“高級系統(tǒng)設(shè)置”

單機“環(huán)境變量”

找到系統(tǒng)變量 path,編輯

在最后加上 2 個路徑:

C:\Users\Administrator\AppData\Local\Programs\Python\Python36
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\Scripts

  說明:以上默認(rèn)安裝路徑,每個電腦上是類似的,找到復(fù)制這個路徑加到 Path 中即可

  我的路徑是已經(jīng)改了

jupyter notebook 閃退問題

  解決辦法:更換默認(rèn)瀏覽器。 ,建議用谷歌瀏覽器或者火狐瀏覽器

相關(guān)文章

  • python實現(xiàn)學(xué)員管理系統(tǒng)

    python實現(xiàn)學(xué)員管理系統(tǒng)

    這篇文章主要為大家詳細介紹了python實現(xiàn)學(xué)員管理系統(tǒng),文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2019-02-02
  • Python爬取百度翻譯實現(xiàn)中英互譯功能

    Python爬取百度翻譯實現(xiàn)中英互譯功能

    這篇文章主要介紹了利用Python爬蟲爬取百度翻譯,從而實現(xiàn)中英文互譯的功能,文中的示例代碼講解詳細,感興趣的小伙伴可以了解一下
    2022-01-01
  • Python筆記之觀察者模式

    Python筆記之觀察者模式

    這篇文章主要為大家詳細介紹了Python筆記之觀察者模式,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2019-11-11
  • 大家都說好用的Python命令行庫click的使用

    大家都說好用的Python命令行庫click的使用

    這篇文章主要介紹了大家都說好用的Python命令行庫click的使用,文中通過示例代碼介紹的非常詳細,對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-11-11
  • Flask框架鉤子函數(shù)功能與用法分析

    Flask框架鉤子函數(shù)功能與用法分析

    這篇文章主要介紹了Flask框架鉤子函數(shù)功能與用法,簡單描述了flask框架鉤子函數(shù)的概念、功能并結(jié)合實例形式分析了flask框架鉤子函數(shù)的基本用法,需要的朋友可以參考下
    2019-08-08
  • Python基礎(chǔ)之標(biāo)準(zhǔn)庫和常用的第三方庫案例教程

    Python基礎(chǔ)之標(biāo)準(zhǔn)庫和常用的第三方庫案例教程

    這篇文章主要介紹了Python基礎(chǔ)之標(biāo)準(zhǔn)庫和常用的第三方庫案例教程,本篇文章通過簡要的案例,講解了該項技術(shù)的了解與使用,以下就是詳細內(nèi)容,需要的朋友可以參考下
    2021-07-07
  • python實現(xiàn)心型照片墻效果

    python實現(xiàn)心型照片墻效果

    這篇文章主要為大家詳細介紹了python實現(xiàn)心型照片墻效果,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2021-09-09
  • 19個Python?Sklearn中超實用的隱藏功能分享

    19個Python?Sklearn中超實用的隱藏功能分享

    今天跟大家介紹?19?個?Sklearn?中超級實用的隱藏的功能,這些功能雖然不常見,但非常實用,它們可以直接優(yōu)雅地替代手動執(zhí)行的常見操作
    2022-07-07
  • Python 實現(xiàn)域名解析為ip的方法

    Python 實現(xiàn)域名解析為ip的方法

    今天小編就為大家分享一篇Python 實現(xiàn)域名解析為ip的方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2019-02-02
  • python的變量與賦值詳細分析

    python的變量與賦值詳細分析

    這篇文章主要介紹了python的變量與賦值詳細分析,具有一定參考價值,需要的朋友可以了解下。
    2017-11-11

最新評論