Chapter 4: Setting Up Your Data Analysis Environment
4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment
Exercise 4.1: Installing Anaconda
- Download the Anaconda installer for your operating system from Anaconda's official website.
- Follow the installation instructions and validate the installation by running the following command in your terminal:
conda --version
- Share your screen capture of the successful installation as evidence of completion.
Exercise 4.2: Jupyter Notebook Basics
- Launch Jupyter Notebook by typing
jupyter notebook
in the terminal. - Create a new Jupyter notebook and name it
My_First_Notebook
. - Inside the notebook, create the following:
- A Markdown cell with a level-1 header saying "My First Notebook"
- A code cell that outputs
Hello, World!
print("Hello, World!")
- Save and download the notebook.
Exercise 4.3: Git for Version Control
- Install Git if you haven't already. Validate the installation by running the following command in your terminal:
git --version
- Create a new directory and initialize a new Git repository inside it.
mkdir my_git_project
cd my_git_project
git init - Create a
.gitignore
file and add a rule to ignore.DS_Store
files (if you're on a Mac).Example
.gitignore
:.DS_Store
- Commit the
.gitignore
file to your repository.git add .gitignore
git commit -m "Added .gitignore" - Create a new file called
README.md
and write "This is my first Git project" inside it. - Commit this new file to your Git repository.
git add README.md
git commit -m "Added README"
These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.
4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment
Exercise 4.1: Installing Anaconda
- Download the Anaconda installer for your operating system from Anaconda's official website.
- Follow the installation instructions and validate the installation by running the following command in your terminal:
conda --version
- Share your screen capture of the successful installation as evidence of completion.
Exercise 4.2: Jupyter Notebook Basics
- Launch Jupyter Notebook by typing
jupyter notebook
in the terminal. - Create a new Jupyter notebook and name it
My_First_Notebook
. - Inside the notebook, create the following:
- A Markdown cell with a level-1 header saying "My First Notebook"
- A code cell that outputs
Hello, World!
print("Hello, World!")
- Save and download the notebook.
Exercise 4.3: Git for Version Control
- Install Git if you haven't already. Validate the installation by running the following command in your terminal:
git --version
- Create a new directory and initialize a new Git repository inside it.
mkdir my_git_project
cd my_git_project
git init - Create a
.gitignore
file and add a rule to ignore.DS_Store
files (if you're on a Mac).Example
.gitignore
:.DS_Store
- Commit the
.gitignore
file to your repository.git add .gitignore
git commit -m "Added .gitignore" - Create a new file called
README.md
and write "This is my first Git project" inside it. - Commit this new file to your Git repository.
git add README.md
git commit -m "Added README"
These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.
4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment
Exercise 4.1: Installing Anaconda
- Download the Anaconda installer for your operating system from Anaconda's official website.
- Follow the installation instructions and validate the installation by running the following command in your terminal:
conda --version
- Share your screen capture of the successful installation as evidence of completion.
Exercise 4.2: Jupyter Notebook Basics
- Launch Jupyter Notebook by typing
jupyter notebook
in the terminal. - Create a new Jupyter notebook and name it
My_First_Notebook
. - Inside the notebook, create the following:
- A Markdown cell with a level-1 header saying "My First Notebook"
- A code cell that outputs
Hello, World!
print("Hello, World!")
- Save and download the notebook.
Exercise 4.3: Git for Version Control
- Install Git if you haven't already. Validate the installation by running the following command in your terminal:
git --version
- Create a new directory and initialize a new Git repository inside it.
mkdir my_git_project
cd my_git_project
git init - Create a
.gitignore
file and add a rule to ignore.DS_Store
files (if you're on a Mac).Example
.gitignore
:.DS_Store
- Commit the
.gitignore
file to your repository.git add .gitignore
git commit -m "Added .gitignore" - Create a new file called
README.md
and write "This is my first Git project" inside it. - Commit this new file to your Git repository.
git add README.md
git commit -m "Added README"
These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.
4.4 Practical Exercises Chapter 4: Setting Up Your Data Analysis Environment
Exercise 4.1: Installing Anaconda
- Download the Anaconda installer for your operating system from Anaconda's official website.
- Follow the installation instructions and validate the installation by running the following command in your terminal:
conda --version
- Share your screen capture of the successful installation as evidence of completion.
Exercise 4.2: Jupyter Notebook Basics
- Launch Jupyter Notebook by typing
jupyter notebook
in the terminal. - Create a new Jupyter notebook and name it
My_First_Notebook
. - Inside the notebook, create the following:
- A Markdown cell with a level-1 header saying "My First Notebook"
- A code cell that outputs
Hello, World!
print("Hello, World!")
- Save and download the notebook.
Exercise 4.3: Git for Version Control
- Install Git if you haven't already. Validate the installation by running the following command in your terminal:
git --version
- Create a new directory and initialize a new Git repository inside it.
mkdir my_git_project
cd my_git_project
git init - Create a
.gitignore
file and add a rule to ignore.DS_Store
files (if you're on a Mac).Example
.gitignore
:.DS_Store
- Commit the
.gitignore
file to your repository.git add .gitignore
git commit -m "Added .gitignore" - Create a new file called
README.md
and write "This is my first Git project" inside it. - Commit this new file to your Git repository.
git add README.md
git commit -m "Added README"
These exercises should give you hands-on experience with the concepts covered in this chapter. Follow them through, and you'll have set up your first data analysis environment, complete with version control.