Jupyter Notebook and Anaconda

What Is Jupyter Notebook?

Jupyter Notebook is an interactive Python shell that runs in your browser. When installed through Anaconda, it is easy to quickly set up a Python development environment. Since it’s easy to set up and easy to run, it will be easy to learn Python.

Jupyter Notebook turns your browser into a Python development environment. The only thing you have to install is Anaconda. In essence, it allows you to enter a few lines of Python code, press CTRL+Enter, and execute the code. You enter the code in cells and then run the currently selected cell. There are also options to run all the cells in your notebook. This is useful if you are developing a larger program.

What Is Anaconda?

Anaconda is the easiest way to ensure that you don’t spend all day installing Jupyter. Simply download the Anaconda package and run the installer. The Anaconda software package contains everything you need to create a Python development environment. Anaconda comes in two versions—one for Python 2.7 and one for Python 3.x. For the purposes of this guide, install the one for Python 2.7.

Anaconda is an open source data-science platform. It contains over 100 packages for use with Python, R, and Scala. You can download and install Anaconda quickly with minimal effort. Once installed, you can update the packages or Python version or create environments for different projects.

Getting Started

  1. Download and install Anaconda at https://www.anaconda.com/download.
  2. Once you’ve installed Anaconda, you’re ready to create your first notebook. Run the Jupyter Notebook application that was installed as part of Anaconda.
  3. Your browser will open to the following address: http://localhost:8888. If you’re running Internet Explorer, close it. Use Firefox or Chrome for best results. From there, browse to http://localhost:8888.
  4. Start a new notebook. On the right-hand side of the browser, click the drop-down button that says “New” and select Python or Python 2.
  5. This will open a new iPython notebook in another browser tab. You can have many notebooks open in many tabs.
  6. Jupyter Notebook contains cells. You can type Python code in each cell. To get started (for Python 2.7), type print “Hello, World!” in the first cell and hit CTRL+Enter. If you’re using Python 3.5, then the command is print(“Hello, World!”).

Leave a Reply

Your email address will not be published. Required fields are marked *