Getting Started with Anaconda and Jupyter Notebook: Writing Your First Code with Python

Muhammad Umair
3 min readMar 12, 2023

--

Getting started with coding can be daunting, but with the right tools, it can be a fun and fulfilling experience. One tool that can make coding easier is Anaconda, a popular Python distribution that comes with a host of pre-installed libraries and packages. In this tutorial, we’ll walk through how to install Anaconda and write your first code using Jupyter Notebook.

If you want to learn more about getting started with Anaconda and Jupyter Notebook, check out my previous blog post: Getting Started with Anaconda and Jupyter Notebook: A Beginner’s Guide.

If you’re ready to dive deeper into Python and machine learning, my blog post Basics of Machine Learning with Python Programming can help you get started.

And for those interested in image classification with PyTorch, be sure to check out my blog post A Beginner’s Guide to Image Classification with PyTorch: How to Build and Train Your Own Model.

Installing Anaconda

First, let’s download Anaconda from the official website [https://www.anaconda.com/products/individual]. Choose the version that matches your operating system and follow the installation instructions. Once the installation is complete, you should see the Anaconda Navigator in your applications folder.

Launching Jupyter Notebook

Anaconda comes with a number of applications, including Jupyter Notebook, which we’ll use to write our first code. To launch Jupyter Notebook, open the Anaconda Navigator and click on the “Launch” button next to the Jupyter Notebook icon.

This will open up a new tab in your default web browser with the Jupyter Notebook dashboard.

Writing Your First Code

To write your first code in Jupyter Notebook, click on the “New” button in the top right corner and select “Python 3” from the dropdown menu.

This will open a new notebook, where you can write and run Python code. In the first cell, let’s write a simple “Hello, World!” program.

print("Hello, World!")

To run the code, click on the “Run” button in the toolbar or press “Shift + Enter” on your keyboard. You should see the output “Hello, World!” printed below the cell.

Congratulations, you’ve just written your first code using Anaconda and Jupyter Notebook!

Conclusion

Anaconda and Jupyter Notebook are powerful tools that can make coding in Python easier and more efficient. By following these simple steps, you can get started with writing your own Python code in no time. Happy coding!

Please subscribe to and follow my profile to stay updated on my latest content. I will be uploading more useful and informative posts in the future. Thank you for your support!

--

--

Muhammad Umair

I am an expert in Machine Learning and Deep Learning, with years of experience. I shares my insights and expertise through engaging blog posts on Medium.