Exploring Spyder: An IDE for scientific computing

Slides:



Advertisements
Similar presentations
Information System Design Lab 5&6. User Interface Design.
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
CS0007: Introduction to Computer Programming Setting Up Java.
Creating a Console Application with Visual Studio
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
A First Program Using C#
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Integrated Development Environments (IDEs) CS 21a: Introduction to Computing I First Semester,
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
Shell Scripting Introduction. Agenda What is Shell Scripting? Why use Shell Scripting? Writing and Running a Shell Script Basic Commands -ECHO - REM.
Vim Editor and Unix Command gcc compiler Computer Networks.
1 Chapter 1 Introduction to Java. 2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________.
IDEs Department of Information Systems and Computer Science Ateneo de Manila University.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Chapter 19: Visual Lisp. After completing this Chapter, you will be able to do the following: What is AutoLISP Launching Visual LISP Terminology and Fundamental.
Pattern Recognition Software CS855 Week 1. Matlab Commercial Very fast matrix operations Many open source functions Portability limited Free Interpreted.
VB – Debugging Tools Appendix D. Why do we need debugging? Every program has errors, and the process of finding these errors is debugging Types of errors.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
1 / 12 COP 3503 FALL 2012 SHAYAN JAVED Programming Fundamentals using Java 1.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
IDLE An IDE for Python bundled with the program release Click on IDLE (Python GUI) in the Start menu under the Python program group  Get the IDLE Python.
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
Installing and Developing Programs in Python. Installing Python is pre-installed on most Unix systems, including Linux and MAC OS X The pre-installed.
CSC 1010 Programming for All Lecture 2 Introduction to Python Some material based on material from Marty Stepp, Instructor, University of Washington.
Integrated Development Environments (IDEs) CS 21a: Introduction to Computing I Department of Information Systems and Computer Science Ateneo de Manila.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Learning Unix/Linux Based on slides from: Eric Bishop.
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.
C++ Programming Basics C++ Lecture 1 Stacy MacAllister.
Prepare Launch Spyder Open Spyder (C:/Anaconda2/Scripts/spyder) Or Open from launcher (C:/Anaconda2/Scripts/launcher) Download data
Programming C++ in Linux by various IDEs and editors by: Danial Khashabi Master: Dr.B.Taheri November 2008.
Software Development Environment
Appendix A Barb Ericson Georgia Institute of Technology May 2006
CST 1101 Problem Solving Using Computers
Chapter 2: The Visual Studio .NET Development Environment
Development Environment Basics
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Appendix B MathScript Basics
Guide To UNIX Using Linux Third Edition
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
TRANSLATORS AND IDEs Key Revision Points.
Test Automation For Web-Based Applications
1. Open Visual Studio 2008.
EMSE 6574 – Programming for Analytics: Python 101 – Python Enviornments Joel Klein.
IDE’s and Debugging.
Python Crash Course CSC 576: Data Science.
Scripts In Matlab.
Linux Operations and Administration
Input and Output Python3 Beginner #3.
Starter Which of these inventions is: Used most by people in Britain
Installations for Course
Workshop for Programming And Systems Management Teachers
The Python interpreter
Installations for Course
Presentation transcript:

Exploring Spyder: An IDE for scientific computing 7/9/2015

Outline Integrated development environment (IDE) Spyder Major Components: IPython Console or Python Console Editor Variable Explorer Object Explorer File Explorer IPython Is an enhanced interactive interpreter is an interactive shell that addresses the limitation of the standard python interpreter, and it is a work-horse for scientific use of python. It provides an interactive prompt to the python interpreter with a greatly improved user-friendliness. Command history, which can be browsed with the up and down arrows on the keyboard. Tab auto-completion. In-line editing of code. Object introspection, and automatic extract of documentation strings from python objects like classes and functions. Good interaction with operating system shell. Support for multiple parallel back-end processes, that can run on computing clusters or cloud services like Amazon EE2. Spyder is a MATLAB-like IDE An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and adebugger. Most modern IDEs have intelligent code completion. Some IDEs contain a compiler, interpreter, or both, such as NetBeans and Eclipse; others do not, such as SharpDevelop andLazarus. The boundary between an integrated development environment and other parts of the broader software development environment is not well-defined. Sometimes a version control system, or various tools to simplify the construction of a Graphical User Interface (GUI), are integrated. Many modern IDEs also have a class browser, an object browser, and a class hierarchy diagram, for use in object-oriented software development. Other IDEs are Wing IDE PyCharm NetBeans Eclipse for scientific computing with python. It has the many advantages of a traditional IDE environment, for example that everything from code editing, execution and debugging is carried out in a single environment, and work on different calculations can be organized as projects in the IDE environment.

Integrated development environment (IDE) Software application that provides comprehensive facilities to computer programmers for software development. Examples: Spyder Wing IDE PyCharm NetBeans Eclipse Visual Studio Components: Source code editor Build Automation Debugger Some have : Interpreter Compiler Python is an interpreted language, is a programming language for which most of its implementations execute instructions directly, without previously compiling a program into machine-language instructions. The interpreter executes the program directly, translating each statement into a sequence of one or more subroutines already compiled into machine code.

Opening Spyder Start Menu Anaconda Launcher Writing spyder in Bash (Unix shell) or Command Prompt (Windows) Go ahead and open it. While it opens lets explore the components

Major Components After opening this is how it looks. Now I will show you some of the major components of Spyder The console, which in this case is an Ipyhon console. Briefly, IPythons is an enhanced Python interpreter. Is the same as your Python console but has enhanced functionality. You can work with IPython or open a Python console instead. You have your editor , which is a text editor with enhanced functionality. The object explorer which will tell you information about an object. For example if you want to know information about a method. A variable explorer which will list the variables. It will let you know: the name of the variable, type size,etc And the file explorer that shows the current directory, you can explore and import files or change the current directory on the top.

IPython Enhanced python interpreter To use python console instead of IPython Go to console tab and Python tab Go to the menu bar. Consoles< Open a python console IPython has Tab completion Press Up for history Some useful commands called magic commands (don’t need to add % in front) %cd to change directory %pwd current directory %run to run a python script from here %reset to delete all variables %who to find information from variables You can run any shell command by typing ! in front to find more info about the commands  https://ipython.org/ipython-doc/dev/interactive/magics.html

Editor Syntax coloring Tab completion To obtain information of method Ctrl+I before parenthesis Run your script from here F5 or by pressing Run line or select lines F9 Run cells #%% (standard cell separator) # %% (standard cell separator, when file has been edited with Eclipse) # <codecell> (IPython notebook cell separator) Run Cell Ctrl + Enter Run cell and advance Shift + Enter Find and replace text Ctrl + F