python入門jupyter基礎(chǔ)操作及文本用法
1.jupyter簡(jiǎn)介
Jupyter Notebook是一個(gè)開源的Web應(yīng)用程序,允許用戶創(chuàng)建和共享包含代碼、方程式、可視化和文本的文檔。
它的用途包括:數(shù)據(jù)清理和轉(zhuǎn)換、數(shù)值模擬、統(tǒng)計(jì)建模、數(shù)據(jù)可視化、機(jī)器學(xué)習(xí)等等
2.jupyter基礎(chǔ)操作
2.1windows更新pip庫(kù)
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 #有錯(cuò)誤提升的話,則需要安裝依賴包,No module named 'x' x顯示什么就安裝什么依賴包 pip install maturin #安裝插件,提高效率 pip install jupyter_contrib_nbextensions #更新jupyter pip install --upgrade jupyter
2.3初次啟動(dòng)jupyter
#按windows鍵+r 輸入:jupyter-notebook #google瀏覽器 輸入:127.0.0.1:8888 或者 localhost:8888
看到這個(gè)頁(yè)面則成功!
2.4設(shè)置密碼進(jìn)入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
#再次運(yùn)行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).
看到此頁(yè)面則成功?。。?/p>
3.創(chuàng)建一個(gè)jupyter文本
4.jupyter文本的用法
4.1保存和下載文本
4.2運(yùn)行和切換代碼
4.3多個(gè)代碼運(yùn)行
以上就是python入門-jupyter基礎(chǔ)操作及文本用法的詳細(xì)內(nèi)容,更多關(guān)于python入門的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!
相關(guān)文章
python網(wǎng)絡(luò)編程學(xué)習(xí)筆記(10):webpy框架
webpy小巧,簡(jiǎn)單,實(shí)用,可以快速的完成簡(jiǎn)單的web頁(yè)面。這里根據(jù)webpy Cookbook簡(jiǎn)要的介紹一下webpy框架,需要的朋友可以參考下2014-06-06Python+Selenium實(shí)現(xiàn)一鍵摸魚&采集數(shù)據(jù)
將Selenium程序編寫為 .bat 可執(zhí)行文件,從此一鍵啟動(dòng)封裝好的Selenium程序,省時(shí)省力還可以復(fù)用,豈不美哉。所以本文將利用Selenium實(shí)現(xiàn)一鍵摸魚&一鍵采集數(shù)據(jù),需要的可以參考一下2022-08-08WINDOWS 同時(shí)安裝 python2 python3 后 pip 錯(cuò)誤的解決方法
這篇文章主要給大家分享的是在WINDOWS下同時(shí)安裝 python2 python3 后 pip 錯(cuò)誤的解決方法,非常的實(shí)用,有需要的小伙伴可以參考下2017-03-03Python基于SciPy庫(kù)實(shí)現(xiàn)統(tǒng)計(jì)分析與建模
SciPy是一個(gè)強(qiáng)大的Python庫(kù),提供了豐富的科學(xué)計(jì)算和數(shù)據(jù)分析工具,本文我們將探討如何使用Python和SciPy庫(kù)進(jìn)行統(tǒng)計(jì)分析和建模,感興趣的可以學(xué)習(xí)一下2023-06-06關(guān)于python3.7安裝matplotlib始終無(wú)法成功的問題的解決
這篇文章主要介紹了關(guān)于python3.7安裝matplotlib始終無(wú)法成功的問題的解決,文中通過圖文介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2020-07-07Django實(shí)現(xiàn)簡(jiǎn)單登錄的示例代碼
本文主要介紹了Django實(shí)現(xiàn)簡(jiǎn)單登錄的示例代碼,文中通過示例代碼介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2021-11-11