SlideShare a Scribd company logo
https://github.com/gapatino/Making-Your-Code-Faster
-Cython-and-parallel-processing-in-the-Jupyter-Notebook
Making Your Code Faster:
Cython and parallel processing
in the Jupyter Notebook
PyData DC 2016
Gustavo A. Patino
Department of Biomedical Sciences
Department of Neurology
Oakland University William Beaumont School of Medicine
Rochester, MI
https://github.com/gapatino/Making-Your-Code-Faster-Cython-and-parallel-processing-in-the-Jupyter-Notebook
Disclaimer
• No financial interests on any company or
package that will be mentioned
• Not a computer scientist
https://github.com/gapatino/Making-Your-Code-Faster-Cython-and-parallel-processing-in-the-Jupyter-Notebook
Problem description
• Using Euler’s method: y(n+1)=yn+(step_size*y’)
approximate the function y=x2 for a million
points
• Determine the minimum step size for the result
to be within 1e-5 of the correct answer at the last
point evaluated
• Note how a step size of 1 means we will evaluate
values of x between 0 and 1000000, while a step
sizeof 0.001 means that x ranges from 0 to 1000
https://github.com/gapatino/Making-Your-Code-Faster-Cython-and-parallel-processing-in-the-Jupyter-Notebook
https://github.com/gapatino/Making-Your-Code-Faster
-Cython-and-parallel-processing-in-the-Jupyter-Notebook

More Related Content

PDF
Data driven portfolio management agile2017
PPTX
Python and MongoDB as a Market Data Platform by James Blackburn
PDF
How Soon is Now: automatically extracting publication dates of news articles ...
POTX
Doing frequentist statistics with scipy
PDF
Promoting a Data Driven Culture in a Microservices Environment
PPTX
Deep Learning with Python (PyData Seattle 2015)
PDF
Bayesian Network Modeling using Python and R
PPTX
Transfer Learning and Fine-tuning Deep Neural Networks
Data driven portfolio management agile2017
Python and MongoDB as a Market Data Platform by James Blackburn
How Soon is Now: automatically extracting publication dates of news articles ...
Doing frequentist statistics with scipy
Promoting a Data Driven Culture in a Microservices Environment
Deep Learning with Python (PyData Seattle 2015)
Bayesian Network Modeling using Python and R
Transfer Learning and Fine-tuning Deep Neural Networks

Viewers also liked (19)

PDF
How I learned to time travel, or, data pipelining and scheduling with Airflow
PPTX
Python Scipy Numpy
PPTX
Data Visulalization
PDF
Hdf5 is for Lovers (PyData SV 2013)
PDF
Scipy, numpy and friends
PDF
The Joy of SciPy
PDF
Scientific Computing with Python Webinar 9/18/2009:Curve Fitting
PDF
Authorship Attribution and Forensic Linguistics with Python/Scikit-Learn/Pand...
PPTX
Danny Bickson - Python based predictive analytics with GraphLab Create
PPTX
Learn to Build an App to Find Similar Images using Deep Learning- Piotr Teterwak
PDF
Teaching Recurrent Neural Networks using Tensorflow (May 2016)
PDF
Effective Numerical Computation in NumPy and SciPy
PPTX
Deep learning image classification aplicado al mundo de la moda
PPTX
Speed Without Drag by Saul Diez-Guerra PyData SV 2014
PPTX
Nipype
PDF
Brains & Brawn: the Logic and Implementation of a Redesigned Advertising Mark...
PDF
Evolutionary Algorithms: Perfecting the Art of "Good Enough"
PDF
Robert Meyer- pypet
PPTX
Crushing the Head of the Snake by Robert Brewer PyData SV 2014
How I learned to time travel, or, data pipelining and scheduling with Airflow
Python Scipy Numpy
Data Visulalization
Hdf5 is for Lovers (PyData SV 2013)
Scipy, numpy and friends
The Joy of SciPy
Scientific Computing with Python Webinar 9/18/2009:Curve Fitting
Authorship Attribution and Forensic Linguistics with Python/Scikit-Learn/Pand...
Danny Bickson - Python based predictive analytics with GraphLab Create
Learn to Build an App to Find Similar Images using Deep Learning- Piotr Teterwak
Teaching Recurrent Neural Networks using Tensorflow (May 2016)
Effective Numerical Computation in NumPy and SciPy
Deep learning image classification aplicado al mundo de la moda
Speed Without Drag by Saul Diez-Guerra PyData SV 2014
Nipype
Brains & Brawn: the Logic and Implementation of a Redesigned Advertising Mark...
Evolutionary Algorithms: Perfecting the Art of "Good Enough"
Robert Meyer- pypet
Crushing the Head of the Snake by Robert Brewer PyData SV 2014
Ad

More from PyData (20)

PDF
Michal Mucha: Build and Deploy an End-to-end Streaming NLP Insight System | P...
PDF
Unit testing data with marbles - Jane Stewart Adams, Leif Walsh
PDF
The TileDB Array Data Storage Manager - Stavros Papadopoulos, Jake Bolewski
PDF
Using Embeddings to Understand the Variance and Evolution of Data Science... ...
PDF
Deploying Data Science for Distribution of The New York Times - Anne Bauer
PPTX
Graph Analytics - From the Whiteboard to Your Toolbox - Sam Lerma
PPTX
Do Your Homework! Writing tests for Data Science and Stochastic Code - David ...
PDF
RESTful Machine Learning with Flask and TensorFlow Serving - Carlo Mazzaferro
PDF
Mining dockless bikeshare and dockless scootershare trip data - Stefanie Brod...
PDF
Avoiding Bad Database Surprises: Simulation and Scalability - Steven Lott
PDF
Words in Space - Rebecca Bilbro
PDF
End-to-End Machine learning pipelines for Python driven organizations - Nick ...
PPTX
Pydata beautiful soup - Monica Puerto
PDF
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
PPTX
Extending Pandas with Custom Types - Will Ayd
PDF
Measuring Model Fairness - Stephen Hoover
PDF
What's the Science in Data Science? - Skipper Seabold
PDF
Applying Statistical Modeling and Machine Learning to Perform Time-Series For...
PDF
Solving very simple substitution ciphers algorithmically - Stephen Enright-Ward
PDF
The Face of Nanomaterials: Insightful Classification Using Deep Learning - An...
Michal Mucha: Build and Deploy an End-to-end Streaming NLP Insight System | P...
Unit testing data with marbles - Jane Stewart Adams, Leif Walsh
The TileDB Array Data Storage Manager - Stavros Papadopoulos, Jake Bolewski
Using Embeddings to Understand the Variance and Evolution of Data Science... ...
Deploying Data Science for Distribution of The New York Times - Anne Bauer
Graph Analytics - From the Whiteboard to Your Toolbox - Sam Lerma
Do Your Homework! Writing tests for Data Science and Stochastic Code - David ...
RESTful Machine Learning with Flask and TensorFlow Serving - Carlo Mazzaferro
Mining dockless bikeshare and dockless scootershare trip data - Stefanie Brod...
Avoiding Bad Database Surprises: Simulation and Scalability - Steven Lott
Words in Space - Rebecca Bilbro
End-to-End Machine learning pipelines for Python driven organizations - Nick ...
Pydata beautiful soup - Monica Puerto
1D Convolutional Neural Networks for Time Series Modeling - Nathan Janos, Jef...
Extending Pandas with Custom Types - Will Ayd
Measuring Model Fairness - Stephen Hoover
What's the Science in Data Science? - Skipper Seabold
Applying Statistical Modeling and Machine Learning to Perform Time-Series For...
Solving very simple substitution ciphers algorithmically - Stephen Enright-Ward
The Face of Nanomaterials: Insightful Classification Using Deep Learning - An...
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
Teaching material agriculture food technology
PDF
A comparative analysis of optical character recognition models for extracting...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation theory and applications.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Machine learning based COVID-19 study performance prediction
PPTX
A Presentation on Artificial Intelligence
PPTX
Big Data Technologies - Introduction.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Weekly Chronicles - August'25-Week II
Encapsulation_ Review paper, used for researhc scholars
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Digital-Transformation-Roadmap-for-Companies.pptx
Teaching material agriculture food technology
A comparative analysis of optical character recognition models for extracting...
The AUB Centre for AI in Media Proposal.docx
Encapsulation theory and applications.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Machine learning based COVID-19 study performance prediction
A Presentation on Artificial Intelligence
Big Data Technologies - Introduction.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Dropbox Q2 2025 Financial Results & Investor Presentation

Making your code faster cython and parallel processing in the jupyter notebook