- Hands-On Data Science and Python Machine Learning
- Frank Kane
- 176字
- 2021-07-15 17:15:04
More options than just the IPython/Jupyter Notebook
I want to make sure that you know there's more than one way to run Python code. Now, throughout this book, we'll be using the IPython/Jupyter Notebook format but in the real world, you're not going to be running your code as a notebook. You're going to be running it as a standalone Python script. So I just want to make sure you know how to do that and see how it works.

So let's go back to this first example that we ran in the book, just to illustrate the importance of whitespace. We can just select and copy that code out of the notebook format and paste it into a new file.
This can be done by clicking on the New button at the extreme left. So let's make a new file and paste it in and let's save this file and call it, test.py, where py is the usual extension that we give to Python scripts. Now, I can run this in a few different ways.
- C#完全自學教程
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- jQuery從入門到精通 (軟件開發視頻大講堂)
- INSTANT Mercurial SCM Essentials How-to
- Apache Mahout Clustering Designs
- UML 基礎與 Rose 建模案例(第3版)
- Scala Reactive Programming
- Scala for Machine Learning(Second Edition)
- Spring+Spring MVC+MyBatis從零開始學
- Access 2010數據庫應用技術實驗指導與習題選解(第2版)
- Hacking Android
- Python應用與實戰
- Instant GLEW
- jQuery Mobile Web Development Essentials(Second Edition)
- 微信公眾平臺開發最佳實踐