集成IDE anaconda

Anacondahtml

下載安裝完anaconda後,會生成以下工具:前端

安裝Anaconda不須要使用管理員權限。安裝完畢後,Anaconda附帶一個圖形啓動器(Anaconda Prompt),可使用他啓動IPython、管理環境等等。python

安裝anaconda的時候會提示你是否設置環境變量,安裝包上寫着不推薦。我沒弄,安裝完畢後手動設置環境變量,將Python的路徑添加到Path裏面,而後cmd下面執行python顯示算法

注意有個anaconda,沒有的話代表使用的是你單獨安裝python設置的環境變量,不是anaconda內置python的環境變量。後端

Jupyter瀏覽器

Jupyter Notebook是一個在線python開發環境,Shift+Enter執行編輯器

安裝Anaconda的時候會提供一個本地的Jupyter,還能夠直接瀏覽器登錄http://jupyter.org/,而無需在計算機上安裝任何內容。模塊化

如何啓用Jupyter Notebook工具

①在Anaconda Prompt中輸入jupyter notebook。按Ctrl+C關閉Jupyter Notebookthis

②直接在瀏覽器中輸入http://localhost:8888

IPython和Jupyter

IPython中的I表明interactive,意爲互動。本來是一個方便python科學計算的命令行界面。在科學計算中,實驗和錯誤在所難民,須要有一個接口,容許對算法、數據、圖形等進行交互式探索。2011年IPython退出交互式Notebook,Notebook在電腦瀏覽器中運行,並提供統一的Web界面,可將代碼、文本、數學公式、圖標、圖形等內容合在一塊兒,這是科學計算的理想界面。2014年,IPython開發人員爲這個項目從新命名Jupyter。Jupyter具備獨立於語言的Notebook平臺,可配合各類內核使用。內核是Notebook界面的後端,管理交互式會話、變量、數據等等。Notebook是前端,管理用戶界面,文本編輯器、圖標等等。IPython成爲Jupyter Notebook的Python內核名稱,其餘內核包括IR、IJulia、ILua、IRuby等等。

2015年,IPython/Jupyter開發人員將以前單一的IPython代碼庫拆分爲一組較小的項目。例如,IPython的並行計算功能如今在獨立的Python軟件包中實現,包名ipyparallel。IPython小部件在ipywidgets中實現。這種分離使項目的代碼更加模塊化,以及有助於第三方的共享。如今IPython自己是一個比之前小得多的項目,只包括交互式Python終端、Jupyter Notebook的Python內核。

Notebook

最初IPython提供了一個加強的命令行控制檯(在Anaconda中對應Anaconda Prompt),後來引入Jupyter Notebook,這是以前命令行控制檯更新更強的替代品(在Anaconda中對應Jupyter Notebook)。還有一個事Qt Console,與IPython控制檯相似,可是功能更強,支持多行編輯等。

 

Anaconda Prompt

Here is a list of common commands: • conda help: Displays the list of conda commands.
• conda list: Lists all packages installed in the current environment.
• conda info: Displays system information.
• conda env list: Displays the list of environments installed. The currently active one is marked by a star *.
• conda install somepackage: Installs a Python package (replace somepackage by the name of the package you want to install).
• conda install somepackage=0.7: Installs a specific version of a package.
• conda update somepackage: Updates a Python package to the latest available version.
• conda update anaconda: Updates all packages.
• conda update conda: Updates conda itself.

• conda update --all: Updates all packages.
• conda remove somepackage: Uninstalls a Python package.
• conda remove -n myenv --all: Removes the environment named myenv (replace this by the name of the environment you want to uninstall).
• conda clean -t: Removes the old tarballs that are left over after installation and updates.
Some commands ask for confrmation (you need to press y to confrm). You can also use the -y option to avoid the confrmation prompt.

 

NumPy (providing a practical array data structure),

SciPy (scientifc computing),

matplotlib (graphical plotting),

pandas (data analysis and statistics),

scikit-learn (machine learning),

SymPy (symbolic computing),

Jupyter/IPython (effcient interfaces for interactive computing).

genfromtxt

相關文章
相關標籤/搜索