The following procedure is for Windows users. On Mac OS, a recommended way is by Homebrew -> pyenv -> Anaconda.
Anaconda is a distribution of Python that contains a bunch of useful packages for data analysis. Anaconda also includes an easy-to-use package manager and environment manager.
- Search for "Anaconda Python" on Google.
- Install the latest version of Anaconda (with Python 3.*).
Jupyter Notebook is an interactive environment for writing and running code. It is quite easy-to-use and I am sure you will like it.
- Open the start menu -> Anaconda3 -> Anaconda Prompt.
- Type and run "jupyter notebook".
- Confirm the notebook opened in your web browser
- Download an image analysis demo from this link
- Run the demo
- Quit the notebook by Ctrl+C in the Anaconda Prompt.
Changing start directory when you start Jupyter Notebook もしスタートアップフォルダの位置を変えたい場合
- Find "Jupyter Notebook.link" file in " XX>Programs>Anaconda3 (64 bit) folder". If you have already added link of "Jupyter Notebook" at Task bar, right click the link button in Task bar. Jupyter Notebookのよく使うリンクボタンを探す。スタートアップ画面から使っているなら、Windowsボタンから探して、右クリックしてフォルダに移動する。タスクバーにリンクがあるなら、そのタスクバーのリンクボタンを右クリック。
- Right click "Jupyter Notebook.link", and left click "property". リンクボタンを右クリックして、プロパティを押す
- Remove %USERPROFILE%, and add your target folder path just after "/jupyter-notebook-script.py" in "Target". You do not need to change "Start in" directory. リンク先の"%USERPROFILE%"を消し、一番最後にスタートアップフォルダのpathをコピペする。" " を使うとスペースがあってもいける。"作業フォルダ"のところをいじっても変化なし。
Installing IDE (Optional)
Jupyter Notebook is a great tool to learn Python and test your ideas, but it is quite beneficial to use an Integrated Development Environment (IDE) in order to write long programming codes. PyCharm is a popular Python IDE. Other options can be Atom, Spyder, etc. If you alrady have a favorite IDE or editor, this part can be skipped.
- Search for "PyCharm" on Google.
- Install the latest version of community edition.
- Create a "project" and write some test code.
- Confirm Jupyter Notebook can run in PyCharm.
Using a Version Control System
Search for "GitHub" on Google.