EMSE 6574 – Programming for Analytics: Python 101 – Python Enviornments Joel Klein.

Slides:



Advertisements
Similar presentations
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Advertisements

KEVIN DANIELS ECLIPSE. OVERVIEW Integrated Development Environment (IDE) Usually used to develop applications in various programming languages (C, C++.
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Installing and Developing Programs in Python. Installing Python is pre-installed on most Unix systems, including Linux and MAC OS X The pre-installed.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 What we'll cover here l Using the debugger: Starting the debugger Setting.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
SPI NIGHTLIES Alex Hodgkins. SPI nightlies  Build and test various software projects each night  Provide a nightlies summary page that displays all.
Exploring Spyder: An IDE for scientific computing
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
Debugging using By: Samuel Ashby. What is debugging?  A bug is an error in either a program or the hardware itself.  Debugging is first locating and.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
XP Creating Web Pages with Microsoft Office
Building New Analytics with Project Alpha. 2 What is Project Alpha? Project Alpha is a code solution “template” that provides a jump start to developing.
Introduction to Android Programming
How to Get Started With Python
Dive Into® Visual Basic 2010 Express
CSC 222: Object-Oriented Programming
Development Environment
CSC227: Operating Systems
Guide to Linux Installation and Administration, 2e
Obtaining the Required Tools
ATS Application Programming: Java Programming
Getting Started with R.
Introduction Purpose Objectives Content Learning Time
Single Sample Registration
IST256 Python Install Fest!!!!
R For The SQL Developer Kevin Feasel Manager, Predictive Analytics
How to add the packages for printing decision trees
DATA MINING Python.
A451 Theory – 7 Programming 7A, B - Algorithms.
Developing Web-Based Applications
Introduction to Computational Thinking
Lecture 13 RPM and its advantages.
Bomgar Remote support software
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Using PowerShell with Python & SQL Server
Coding in the Cloud This slide deck includes recorded video demonstrations of content from the live presentation. Joon-Yee.
Prepared by Kimberly Sayre and Jinbo Bi
Quick Start Guide for Visual Studio 2010
Test Automation For Web-Based Applications
Introduction to EV3Dev: Setup with Python
Apache MXNet | Installation
Introduction to Python
Brief Intro to Python for Statistics
SEEM4570 Tutorial 1 Android SDK + XCode SDK +
Getting Started: Amazon AWS Account Creation
Option One Install Python via installing Anaconda:
Tutorial 1: Python, Numpy, and AWS Tutorial
Windows Installation Tutorial
Python Crash Course CSC 576: Data Science.
Predictive Models with SQL Server Machine Learning Services
Carthage ios 8 onwards Dependency manager that streamlines the process of integrating the libraries into the project.
Enol Fernandez & Giuseppe La Rocca EGI Foundation
DATA MINING Python.
Running & Testing :: IDEs
Visual Studio Code Walkthrough
Installations for Course
Installations for Course
Presentation transcript:

EMSE 6574 – Programming for Analytics: Python 101 – Python Enviornments Joel Klein

Setting up Python

Python 2.7 vs 3 Python 2.7 is a legacy version of python On many machines this may be the default version installed (mac and Linux) due to compatibility We will be using python 3.6 for this course for the most recent versions of packages

Python Distributions Python Distributions: Anaconda (using in lab) - https://www.continuum.io/downloads Available on all systems Canopy - https://store.enthought.com/downloads/#default WinPython - https://winpython.github.io/ Windows specific data science distribution Using a distribution simplifies the process of setting up your python environment, includes necessary data packages, and integrate useful tools (IDE’s, notebooks, etc) In class we will be using the Anaconda Distribution

Anaconda

Anaconda Navigator The Navigator is a main landing page for working with your python environment. Here we can launch editors (spyder, jupyter notebook, etc.) to write and develop python code In addition we can manage (install packages, etc.) our python environment Anaconda makes installing certain types of packages a lot easier (numpy, sklearn, tensorflow, etc.) Anaconda ensures that all of these different tools run on the same version of python packages Packages are so important because they enable us to use tested and pre-built functionality in python (ml algorithms/stats/etc.)

Anaconda Environments Clicking on the “Environment” tab will show us what environments are available in Anaconda In the simplest terms, an anaconda “environment” is a self-contained collection of python packages. From the “Enviornment” tab we can see which packages are installed and which packages are available for installation. If you click on a package for installation, you’ll be prompted to Apply your changes

Setting Up Class Environment For this class I’ve provided an environment file on blackboard. This environment should include all of the packages necessary for the class and can be installed as follows: Navigate to the “Environment” tab in Anaconda. Click on the “Create” button On the resulting window, provide a name for your environment Next (for specification file) navigate to the provided .yaml file Import

Anaconda Applications On the home page we can choose which environment (base(root) in the img) we want to launch applications from. Clicking the “Launch” button on any of these applications will launch a separate window.

IDE’s and Text Editors

Spyder Spyder is an IDE (Interactive Development Environment) for python that is built into Anaconda (it can be installed on its own). Features: Built in python console Built in debugging Variable Explorer Drawbacks: Limited configuration Debugging can be temperamental Limited autocomplete

Debugging Tools Variable Explorer Text Editor Python Console

PyCharm PyCharm is a more fully featured IDE which has a lot of tools used for project management. It is a more complicated piece of software, and will require connecting to your anaconda distribution, but it has a lot of nice features Good debugging Lots of customization Integration with GIT Etc.

Sublime/Atom Sublime and Atom are both very popular text editors that enable high level of configuration and package managers for additional functionality Features: Multi-language support Package manager to add functionality Jump to function definition Drawbacks: Python console not easily integrated Autocompletion is temperamental Debugging is manual (pdb??)

Sublime Example Package Management Text Editor

Questionnaire Time!

Backup Slides

Installing Python Directly Python can be installed directly using an installer or package manager Individual Installation: https://www.python.org/downloads/release/python-361/

Package Management

Installing Packages Python packages are what enable us to extend the functionality of python to better fit our needs Anaconda comes with a number of essential packages (scikit-learn, NumPy, Pandas, etc) we will be using throughout this course, but it may be necessary to install additional packages as needed Pip is the primary method for installing packages, but Anaconda also has an internal package management tool

Installing Packages with Anaconda Navigate to the Environments tab in Anaconda Navigator Ensure you’ve selected the root environment Filter the packages by “Not Installed” Select the required package Apply the changes

Installing Packages with pip Open up a terminal connected to python (python needs to be a part of the PATH) Run “pip install {package-name}” Note: You can access a terminal connected to python in Anaconda from the environments tab. From there just hit the play button and then “Open Terminal”