python jupyter入門教程
Jupyter Notebook 是一個在瀏覽器中使用的交互式的筆記本,可以實現(xiàn)將代碼、文字完美結(jié)合起來,它的受眾群體大多數(shù)是一些從事數(shù)據(jù)科學(xué)領(lǐng)域相關(guān)(機器學(xué)習、數(shù)據(jù)分析等)的人員。
1.jupyter
Jupyter Notebook是一個開源的Web應(yīng)用程序,允許用戶創(chuàng)建和共享包含代碼、方程式、可視化和文本的文檔。它的用途包括:數(shù)據(jù)清理和轉(zhuǎn)換、數(shù)值模擬、統(tǒng)計建模、數(shù)據(jù)可視化、機器學(xué)習等等
2.jupyter基礎(chǔ)操作
2.1windows更新pip庫
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
C:\Users\籃球>python -m pip install --upgrade pip -i https://pypi.douban.com/simple Looking in indexes: https://pypi.douban.com/simple Collecting pip Downloading https://pypi.doubanio.com/packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl (1.6 MB) |████████████████████████████████| 1.6 MB 1.1 MB/s Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.1.1 Uninstalling pip-20.1.1: Successfully uninstalled pip-20.1.1 Successfully installed pip-21.2.4
2.2jupyter安裝
#安裝jupyter pip install jupyter #有錯誤提升的話,則需要安裝依賴包,No module named 'x' x顯示什么就安裝什么依賴包 pip install maturin #安裝插件,提高效率 pip install jupyter_contrib_nbextensions #更新jupyter pip install --upgrade jupyter
2.3初次啟動jupyter
#按windows鍵+r 輸入:jupyter-notebook #google瀏覽器 輸入:127.0.0.1:8888 或者 localhost:8888
看到這個頁面則成功!

2.4設(shè)置密碼進入jupyter
C:\>CD jupyter C:\jupyter> #windows命令創(chuàng)建文件 C:\jupyter>jupyter notebook --generate-config #生成文件 C:\jupyter>jupyter notebook password #設(shè)置密碼 x x x x #或者查看token輸入登錄 C:\jupyter>jupyter notebook list
#再次運行jupyter E:\>jupyter notebook [W 21:12:13.097 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty') [I 21:12:13.099 NotebookApp] Serving notebooks from local directory: E:\ [I 21:12:13.099 NotebookApp] Jupyter Notebook 6.4.3 is running at: [I 21:12:13.102 NotebookApp] http://localhost:8888/ [I 21:12:13.102 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

看到此頁面則成功!??!
3.創(chuàng)建一個jupyter文本


4.jupyter文本的用法
4.1保存和下載文本

4.2運行和切換代碼


4.3多個代碼運行

歡迎留爪,互相探討,勇敢牛牛,不怕困難!
版權(quán)聲明:本站文章來源標注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
關(guān)注官方微信