- Matplotlib 2.x By Example
- Allen Yu Claire Chung Aldrin Yim
- 222字
- 2021-07-02 19:34:31
Editing and running code
A notebook contains boxes called cells. A new notebook begins with a gray box cell, which is a text area for code editing by default. To insert and edit code:
- Click inside the gray box.
- Type in your Python code.
- Click on the >| play button or press Shift + Enter to run the current cell and move the cursor to the next cell:

Cells can be run in different orders and rerun multiple times in a session. The output and any warnings or error messages are shown in the output area of each cell under each gray textbox. The number in square brackets on the left shows the order of the cell last run:

Once a cell is run, stored namespaces, including functions and variables, are shared throughout the notebook before the kernel restarts.
You can edit the code of any cells while some cells are running. If for any reason you want to interrupt the running kernel, such as to stop a loop that prints out too many messages, you can do so by clicking on the square interrupt button in the toolbar.
- Visual Basic .NET程序設計(第3版)
- DevOps with Kubernetes
- Mastering ServiceStack
- Building a Game with Unity and Blender
- Learning Linux Binary Analysis
- Visual Basic程序設計習題解答與上機指導
- Java性能權威指南(第2版)
- Visual C++應用開發
- Python Interviews
- Scala編程(第5版)
- ExtJS Web應用程序開發指南第2版
- Microsoft HoloLens By Example
- Learning Cocos2d-JS Game Development
- 絕密原型檔案:看看專業產品經理的原型是什么樣
- C#程序開發參考手冊