Course Number: PYTH-284
Duration: 2 days (13 hours)
Format: Live, hands-on

Cython Training Overview

Cython is a programming language that extends Python with C-like syntax. It allows programmers to write Python code that can be compiled into C code, resulting in significant performance improvements. Cython is often used for high-performance computing, scientific computing, and machine learning applications. The Cython programming training course teaches attendees how to write highly performant code with Cython and use NumPy arrays with Python, C, and Cython. 

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some courses are available as live, instructor-led training from one of our partners.

Objectives

  • Set up a C programming environment
  • Explore how to program and run C programs
  • Learn code organization through functions and include files
  • Understand static typing and dynamic memory allocation
  • Practice writing C code called from Python

Prerequisites

This Cython course is for students who have completed a C and Python training class or are self-taught programmers with many years of continuous Python and C experience. 

Outline

Expand All | Collapse All

Introduction
Development Environment
  • Overview of Virtual Machine for Class
  • Visual Studio Code Extensions for C
  • Debugging C with VS Code
C Programming Language
Development Tools
  • Makefile
  • CMake
  • CPP Check
Program Structure
  • Main Function
  • Include Files
  • Header Files
  • Compile to Executable
  • Compile to Shared Library
  • Using Libraries
  • Common Compile Options
Data Types
  • Numbers
  • Strings (Arrays of Characters)
  • Arrays
  • Structs
  • Type Defs
  • Type Casting
  • Static Typing vs. Dynamic Typing
  • Loose Typing vs. Strong Typing
  • Static Types
Control Flow
  • If
  • Switch
  • While
  • Do-While
  • For
  • Goto
Functions
  • Define a Function
  • Call a Function
  • Passing Arguments/Parameters
  • Return Values
  • Function References
Pointers
  • Pass By Value vs. Pass By Reference
  • Dynamically Allocating Memory on the Heap
  • Principles and Practices of Dynamic Memory Allocation
  • Linked Lists
  • Untyped Pointers
Python and C Integration
  • Numpy Arrays
  • Ctypes FFI
  • Python Struct and Structure
  • Create a Simple C-Extension for Python
  • Debug a C-Extension for Python
  • Review C Code generated by Cython
  • Basic Profiling of C functions
Conclusion

Training Materials

All Cython training students receive comprehensive courseware.

Software Requirements

  • Any Windows, Linux, or Mac OS X operating system
  • Standard Python 3.x or Anaconda Python 3.x
  • Visual Studio Code (other editors may be used)


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan