Let’s first understand what are Anaconda and Jupyter Notebook.
What is Anaconda
Anaconda is a distribution software which is used to install Python. A distribution software is a bundle of many packages. In Anaconda distribution, Python and many packages come pre-loaded.
In this tutorial, you will learn – Installing NLTK in Windows Installing Python in Windows Installing NLTK in Mac/Linux Installing NLTK through Anaconda NLTK Dataset How to Download all packages of NL. Install Anaconda on Mac: Link. Install Anaconda on Ubuntu (Linux): Link. Download the community edition of Pycharm for your operating system. (either through pycharm or via command line). About Anaconda, Inc. Download Anaconda. Anaconda Community Open Source NumFOCUS Support Developer Blog. Install Anaconda On Linux, Windows, MacOS. The anaconda installation is very simple and straight forward. The installation process on all the three platform is very similar. But before that you should download anaconda for your OS platform first. After that follow below steps to install it on different OS platform.
Anaconda has the following key components:
- Conda – package manager(a program to update and install various packages)
- Python language
- Various packages (Eg. pandas, numpy)
- Integrated Development Environment(IDE) – To write and execute the code(e.g. Jupyter, Spyder)
What is Jupyter Notebook
Anaconda Install Mac
Jupyter notebook is the most used Python IDE by Data Scientists to code in Python. This is a browser-based IDE, that means you don’t need to open it in some application. Once you start a jupyter server(it’s a program which we will explain later), a notebook will open in your internet browser. So, all we need to do is install Anaconda and then start the jupyter server. Jupyter notebook looks like this in the browser:
Linux & Mac come with Python already installed nowadays. To know if Python is already installed in your system, go to command line/Terminal and type python and hit enter. If you see some version of Python, it means python is already installed in your system. However, we strongly recommend that you install Anaconda and use its Python for this course.
Anaconda installation for different Operating Systems
Windows
- First of all, download Anaconda from the official page and install the latest version(Python 3.* )here
- Now, install anaconda following the steps mentioned: Here
- After successful installation, open command line(command prompt) by typing cmd in Search/Run in your windows.
- Type ‘Jupyter Notebook’ in the command line which will open Jupyter Notebook in your browser with URL ‘http://localhost:8888’. 8888 is port number. If you want to start the server on some other port, then type ‘jupyter notebook –port 9999
We will illustrate the windows installation process using the screenshots below.
Mac
- First of all, download Anaconda from the official page and install the latest version(Python 3.* )here
- Now, install anaconda following the steps mentioned: Here
- After successful installation, open command line(Terminal)
- Type ‘Jupyter Notebook’ in the command line which will open Jupyter Notebook in your browser with URL ‘http://localhost:8888’. 8888 is port number. If you want to start the server on some other port, then type ‘jupyter notebook –port 9999
Linux
- First of all, download Anaconda from the official page and install the latest version(Python 3.* )here
- Now, install anaconda following the steps mentioned: Here
- After successful installation, open command line(Terminal)
- Type ‘Jupyter Notebook’ in the command line which will open Jupyter Notebook in your browser with URL ‘http://localhost:8888’. 8888 is port number. If you want to start the server on some other port, then type ‘jupyter notebook –port 9999
Anaconda installation process on Windows
Step 1
Open your web browser and go to https://www.anaconda.com/download. Click on the Windows icon.
Step 2
Next page will show you two Python options, as below. There are two Python version – Python 2 & Python 3. There is no much difference in terms of efficiency or the tasks you can get done using any of them. But, for this course, we will be using Python 3. At the time of creating this chapter, Python 3.6 is the latest version.
Now, choose the 32 or 64-bit option as below. Most of the computers are 64-bit these days. You can check your System type by right clicking on This PC or My Computer.
Step 3
Anaconda will start downloading on your computer. As it’s a big file, it will take some time to download depending upon your internet speed.
Step 4
Now, double click on the downloaded Anaconda file and Click on Next on the popped up window.
Step 5
Click on I Agree
Step 6
Let just me (Recommended) option remain selected and click on Next.
Step 7
Now, it will ask for the location to install the Anaconda. Let the default location be there and click on Next.
Step 8
Select Register Anaconda as my default Python 3.6 and click on Install
Step 9
The installation will start.
Step 10
This will take some time to complete
Step 11
Next button will be enabled once it’s complete. Click on Next button.
Step 12
This window is asking if you want to install Microsoft Visual Studio Code editor to write code. We will not be using this for writing code. Click on Skip button.
Step 13
Uncheck both checked options and click on Finish button, and your Anaconda installation is complete.
Step 14
Now, let’s access Anaconda Prompt. Go to Search/Run and type Anaconda Prompt and hit enter.
Step 15
A black window like below will open. This is Anaconda Prompt.
Step 16
We will now start jupyter notebook from anaconda prompt. Just type jupyter notebook and hit enter.
Step 17
Jupyter notebook will open in your web browser automatically.
CONGRATULATIONS ? You are doing great. We are excited. Let’s come to coding straight without wasting any more time.
Official releases of seaborn can be installed from PyPI:
The library is also included as part of the Anaconda distribution:
Dependencies¶
Required dependencies¶
If not already present, these libraries will be downloaded when you install seaborn.
![Download Download](/uploads/1/2/6/5/126566816/425253922.png)
Optional dependencies¶
- statsmodels, for advanced regression plots
- fastcluster, for clustering large matrices
Quickstart¶
Once you have seaborn installed, you’re ready to get started.To test it out, you could load and plot one of the example datasets:
If you’re working in a Jupyter notebook or an IPython terminal withmatplotlib modeenabled, you should immediately see the plot.Otherwise, you may need to explicitly call
matplotlib.pyplot.show()
:![Anaconda Anaconda](/uploads/1/2/6/5/126566816/791898587.png)
While you can get pretty far with only seaborn imported, having access tomatplotlib functions is often useful. The tutorials and API documentationtypically assume the following imports:
Debugging install issues¶
The seaborn codebase is pure Python, and the library should generally installwithout issue. Occasionally, difficulties will arise because the dependenciesinclude compiled code and link to system libraries. These difficultiestypically manifest as errors on import with messages such as
'DLLloadfailed'
. To debug such problems, read through the exception trace tofigure out which specific library failed to import, and then consult theinstallation docs for that package to see if they have tips for your particularsystem.In some cases, an installation of seaborn will appear to succeed, but tryingto import it will raise an error with the message
'Nomodulenamedseaborn'
. This usually means that you have multiple Python installations onyour system and that your pip
or conda
points towards a differentinstallation than where your interpreter lives. Resolving this issuewill involve sorting out the paths on your system, but it can sometimes beavoided by invoking pip
with python-mpipinstallseaborn
.Anaconda For Mac Os
Getting help¶
If you think you’ve encountered a bug in seaborn, please report it on theGitHub issue tracker.To be useful, bug reports must include the following information:
- A reproducible code example that demonstrates the problem
- The output that you are seeing (an image of a plot, or the error message)
- A clear explanation of why you think something is wrong
- The specific versions of seaborn and matplotlib that you are working with
Bug reports are easiest to address if they can be demonstrated using one of theexample datasets from the seaborn docs (i.e. with
load_dataset()
).Otherwise, it is preferable that your example generate synthetic data toreproduce the problem. If you can only demonstrate the issue with youractual dataset, you will need to share it, ideally as a csv.Install Anaconda Mac Os
If you’ve encountered an error, searching the specific text of the messagebefore opening a new issue can often help you solve the problem quickly andavoid making a duplicate report.
Because matplotlib handles the actual rendering, errors or incorrect outputsmay be due to a problem in matplotlib rather than one in seaborn. It can save timeif you try to reproduce the issue in an example that uses only matplotlib,so that you can report it in the right place. But it is alright to skip thisstep if it’s not obvious how to do it.
General support questions are more at home on either stackoverflow or discourse, which have a largeraudience of people who will see your post and may be able to offerassistance. StackOverflow is better for specific issues, while discourse isbetter for more open-ended discussion. Your chance of getting a quick answerwill be higher if you include runnable code, a precisestatement of what you are hoping to achieve, and a clear explanation of theproblems that you have encountered.