HO CHI MINH CITY UNIVERSITY OF TRANSPORT
FACULTY OF INFORMATION TECHNOLOGY
SOFTWARE ENGINEERING DEPARTMENT
Guidelines for Installing and Using Anaconda
on Windows
Where can you get Anaconda?
• Go to https://www.anaconda.com/products/individual
• Select Download
Introduction to CSE 2
Start your Anaconda Download
• Select your operating system (Windows, macOS, Linux)
• Select Python 3.7 version with 64-bit installer if you have a 64-bit
machine.
NOTE: This is for Windows install.
Introduction to CSE 3
Start Install
• Open the file you downloaded. You will see the following screen
and then select Next and I agree on the following screen. See
below and follow selections.
Introduction to CSE 4
Install - Continued
Introduction to CSE 5
Install - continued
• Select: Add Anaconda to my PATH environment variable.
• When Installation complete → Click “Next” → Click “Next” →
“Finish”
Introduction to CSE 6
How to write a Python program
• You can write and run a Python program in 3 ways:
• Anaconda Prompt
• Spyder IDE
• Jupyter Notebook
Introduction to CSE 7
Using Anaconda Prompt
1. Click on Start menu → Click folder “Anaconda3 (64-bit)” → Select
Anaconda Prompt.
2. Type “python” and press Enter
3. You can enter a Python code after prompt >>> and press Enter
4. To exit Python, press CTRL+Z
Introduction to CSE 8
Using Anaconda Prompt
• You can run a Python program using Anaconda prompt
1. Using Notepad to edit program → Save file with name: filename.py
2. Launch Anaconda prompt
3. Type: >python path-to-your-file
Introduction to CSE 9
Using Spyder IDE
• Click on Start menu → Click folder “Anaconda3 (64-bit)” → Select Spyder
• Write program into editor → click Run button or press F5.
• You can see your program’s output in the bottom right Console pane.
Introduction to CSE 10
Using Jupyter Notebook
1. Launch Jupyter Notebook
• Click on Start menu → Click folder “Anaconda3 (64-bit)” → Select
Jupyter Notebook.
• You will see the following display in your default browser
Introduction to CSE 11
Using Jupyter Notebook
2. Create a new Notebook:
• Clicking the New button → Python 3
Introduction to CSE 12
Using Jupyter Notebook
3. Rename your Notebook
• Click on the current name and edit it or find rename under File in
the top menu bar
Introduction to CSE 13
Using Jupyter Notebook
4. Write and run commands
• In the In[ ] cell, you type simple code one line at a time or an entire
function → press Shift + Enter or click Run button.
Introduction to CSE 14
Using Jupyter Notebook
5. Save a file
• Notebook is file *.ipynb and
saved in installed directory
Anaconda3 by default.
• You can save notebook to an
another location.
• Clicking File → Download
as → Notebook (.ipynb)
• Or another format, such as
Python (.py), PDF,…
Introduction to CSE 15
Using Jupyter Notebook
6. Upload a file into Jupyter
notebook
• Navigate to the Jupyter Notebook
interface home page
• Click the “Upload” button to open
the file chooser window.
• Choose the file you wish to upload.
You may select multiple files if you
wish.
• Click “Upload” for each file that you
wish to upload.
• These files will now be on your
JupyterHub, your home user’s home
directory
Introduction to CSE 16
Using Jupyter Notebook
7. Change Jupyter notebook working directory
• Create your folder in specific location you wish
• Run “Anaconda Prompt”
• Type command: ipython notebook --notebook-dir=/path/directory
• /path/directory: path to your folder
Introduction to CSE 17
Use Python online
• If you don’t have Python, use Python Tutor until you get
Anaconda installed.
• http://www.pythontutor.com
Introduction to CSE 18