Block indent/unindent : Shift / Tab + Shift Multi-lines comments : Ctrl + / Undo text entry in Cell: Ctrl + Z IPython Magic Commands %matplotlib inline: this will shows plots in notebook directly
Jupyter notebook is really an amazing way for implementing approaches and recording research notes/ideas simultaneously.
本來在Gist的網址是 將帳號從網址中除去後即可直接貼上wordpress的new post完成snapshot embed Sorry, something went wrong. Reload? Sorry, we cannot display this file. Sorry, this file is invalid so it cannot be displayed. Viewer requires iframe. view raw KMean_Version3.ipynb hosted with ❤ by GitHub
In order to organize your code with some repeating requirements, calling functions can be quite efficiently. Other than those built-in function, you can also create your own user-defined functions. The basic syntax of Function is:
If…else statement can be found in most mainstream programming languages to control the flow of your program’s execution. With your predescribed conditions, your program is capable of handling different circumstances by corresponding treatment. The basic syntax is: if condition_expression: statement(s) elif condition_expression: statement(s) else: statement(s) Both elif and else are optional and mul tiple elif is…