back to course main page

Data-Scientist-vs-Predictive-Analytics  Tools-used-in-data-science-industry

Installing Python
Before you can use Python you will need to install it!

This is a very trivial exercise, that involves going to a website and clicking install!  but here is a bit more detail

Go to   www.python.org

Click on Downloads in the menu

Download Python

The website will automatically detect what operating system you are running and will present to you the lastest version of Python to download.

Make sure to select version 3.6 or higher.  Don’t select the older version 2.7 (and lower).  Things are a bit different between these versions of the language. Always best to work with and learn with the latest version.

When the file has been downloaded.  Double click on it and let it run. It will install Python on your laptop/desktop.

Thanks it!  Nice and simple

Python IDEs
As with most langauges there will be a variety of different tools available to assist you with withing code. Any thing from using the command line, to GUI interfaces to the command line, to full scale application development IDEs.

The list below are some of the most popular tools for working with Python. My personal favoriate is Juypter Notebooks. But it is really up to you to decide what works best for you.

  • Command Line : Open the command line on your OS and run ‘Python3’ from there.
  • IDLE : GUI command line tool that comes as part of the Python install and will be in the same directory as the Python executable.
  • PyCharm : GUI tool. Free and paid for versions available
  • Pydev : GUI tool
  • Eric Python : GUI tool
  • Vim : yet another tool you can use. Mainly a code editor rather than something specific for Python

Installing Jupyter Notebooks
My preferred IDE when working with Python is to use Jupyter Notebooks.  Notebooks is a very popular type of tool that many data scientists use. Many of the big software vendors have also adopted this approach and either use one of these notebooks, listed above, or have created their own version of such a tool.

There are a couple of whats to install Jupyter Notebooks.

The following 2 commands will install Jupyter Notebooks for you in your Python environment. The first command updates the Python Packages install program to ensure you are using the latest version. The second command downloads the packages, and any additional dependent packages, and installs them in your Python environment. These 2 commands assume you are using Python versions 3 or higher.

python3 -m pip install --upgrade pip
python3 -m pip install jupyter

That’s it, all installed.

Starting Jupyter Notebook
All you have to do now is to start Jupyter Notebooks.  Open up a command line window and type the following into the command line.
You could create script file to do this for you!

jupyter notebook

Juypter Notebook

To learn more about Jupyter Notebooks check out the Juypter Notebook Documentation.

 

back to course main page