- Hands-On Data Analysis with NumPy and pandas
- Curtis Miller
- 334字
- 2021-06-18 19:03:21
Spyder
Spyder is an IDE unlike the Jupyter Notebook or the Jupyter QT Console. It integrates NumPy, SciPy, Matplotlib, and IPython. It is extensible with plugins, and it is included with Anaconda.
The following screenshot shows Spyder, an actual IDE intended for data analysis and scientific computing:

Spyder Python 3.6
On the right, you can go to File explorer to search for new files to load. Here, we want to open up iris_kmeans.py. This is a file that contains all the commands that we used before in the Jupyter QT Console. Notice on the right that the editor has a console; that is in fact the IPython console, which you saw as the Jupyter QT Console. We can run this entire file by clicking on the Run tab. It will run in the console, shown as follows:

The following screenshot will be the output:

Notice that at the end we see the result of the clustering that we saw before. We can type in commands interactively as well; for example, we can make our computer say Hello, world!.
In the editor, let's type in a new variable, let's say n = 5. Now let's run this file in the editor. Notice that n is a variable that the editor is aware of. Now let's make a change, say n = 6. Unless we were to actually run this file again, the console will be unaware of the change. So if I were to type n in the console again, nothing changes, and it's still 5. You would need to run this line in order to actually see a change.
We also have a variable explorer where we can see the values of variables and change them. For example, I can change the value of n from 6 to 10, shown as follows:

The following screenshot shows the output:

Then, when I go to the console and ask what n is, it will say 10:
n 10
That concludes our discussion of Spyder.
- Hands-On Internet of Things with MQTT
- 精通MATLAB神經網絡
- Visualforce Development Cookbook(Second Edition)
- 最簡數據挖掘
- 21天學通Visual Basic
- Splunk Operational Intelligence Cookbook
- 完全掌握AutoCAD 2008中文版:機械篇
- 啊哈C!思考快你一步
- 單片機原理實用教程
- Mastering OpenStack(Second Edition)
- 大數據導論
- 51單片機應用程序開發與實踐
- 玩轉機器人:基于Proteus的電路原理仿真(移動視頻版)
- 亮劍.NET:圖解ASP.NET網站開發實戰
- Office 2010辦公應用