This tutorial gets you started with the Anaconda Python programming environment.
There are (at least) four ways to use Python in Anaconda
- the editor in Spyder
- the IPython interactive console
- the Anaconda Prompt (a terminal)
- Jupyter Notebooks (not covered in this tutorial)
All four work in slightly different ways, which can be confusing. The purpose of this guide is to give you clear usage instructions.
IPython : type the command + <ENTER>
Editor : <F9>
Anaconda Prompt : python
IPython : %run my_script.py
Editor : <F5>
Anaconda Prompt : python script.py
IPython : x
Editor : print(x)
Anaconda Prompt : -
IPython : pwd
Editor : same location as your code (F5)
or the current path in
Anaconda Prompt : pip install pillow
In IPython and the prompt, you can type:
lsordirshow you files in the current directory.cd pathto change to the directorypathcd ..to change one directory up
IPython : view previous commands: %hist
Editor : save the program to a file
Anaconda Prompt : install Python packages with:
pip install pillow
Get it from www.anaconda.com/download/
if it does not work:
- Install Python 3.6 from www.python.org
- Install Pillow from the command line:
pip install pillow
Change one of the programs to create your own image.
The source code is (c) 2017 Dr. Kristian Rother (see https://github.com/krother/python_showcase)
Published under the conditions of the MIT License