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

jupyter notebook 的工作空間設(shè)置操作

 更新時(shí)間:2020年04月20日 16:27:34   作者:初級(jí)以上  
這篇文章主要介紹了jupyter notebook 的工作空間設(shè)置操作,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧

Jupyter notebook 安裝后,啟動(dòng)后,默認(rèn)的工作空間是當(dāng)前用戶目錄。為了方便對(duì)文檔進(jìn)行管理,往往需要自行設(shè)置工作空間。下面介紹一種便捷的工作空間設(shè)置方法。

對(duì) Jupyter notebook 快捷方式進(jìn)行修改。右擊 jupyter notebook 快捷方式 -> 屬性 -> 把“目標(biāo)”中的 %USERPROFILE% 替換成你想要的目錄,eg:D:\python-workspace。

接下來雙擊 Jupyter notebook 運(yùn)行,就可以見證效果。

補(bǔ)充知識(shí):Running as root is not recommended. Use --allow-root to bypass

首先輸入,查看配置文件位置

[as-pc as]# jupyter notebook --generate-config --allow-root 

Overwrite /root/.jupyter/jupyter_notebook_config.py with default config? [y/N]y
Writing default config to: /root/.jupyter/jupyter_notebook_config.py

接下來打開配置文件

gedit /root/.jupyter/jupyter_notebook_config.py

找到這一行

#c.NotebookApp.allow_root = False

去掉#,并修改成True即可解決root權(quán)限運(yùn)行的問題

c.NotebookApp.allow_root =True

保存,重新運(yùn)行程序

jupyter notebook

設(shè)置訪問密碼

打開 ipython 輸入

from notebook.auth import passwd
passwd()

然后根據(jù)提示輸入2次密碼

Enter password: ········
Verify password: ········

然后復(fù)制 ‘sha1:f5643****************************' 粘貼至配置文件(記得去掉 #)

c.NotebookApp.password = u'sha1:f5*****************************'

更多設(shè)置如下

c.NotebookApp.ip = 'localhost'
c.NotebookApp.open_browser = True(True:?jiǎn)?dòng)時(shí)自動(dòng)打開瀏覽器,F(xiàn)alse:需手動(dòng)打開瀏覽器訪問http://localhost:8888/tree)
c.NotebookApp.port = 8888(端口設(shè)置)

以上這篇jupyter notebook 的工作空間設(shè)置操作就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論