explaingit

fchollet/deep-learning-with-python-notebooks

Analysis updated 2026-05-18

20,085Jupyter NotebookAudience · developerComplexity · 2/5LicenseSetup · moderate

TLDR

Jupyter notebooks with runnable code examples from the book 'Deep Learning with Python,' covering neural networks, image classification, transformers, and text generation using Keras 3.

Mindmap

mindmap
  root((repo))
    What it does
      Code examples
      Runnable notebooks
      Book companion
    Topics covered
      Neural networks
      Image classification
      Transformers
      Text generation
    Tech stack
      Keras 3
      JAX/TensorFlow/PyTorch
      Jupyter notebooks
    How to use
      Google Colab
      Free GPU access
      No local setup
    Audience
      Deep learning learners
      Students
      Practitioners
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run code examples from the Deep Learning with Python book while reading each chapter.

USE CASE 2

Experiment with neural network architectures like CNNs and Transformers in a free cloud environment.

USE CASE 3

Learn image classification, text generation, and time series forecasting with working code you can modify.

USE CASE 4

Train deep learning models on GPU without installing software locally using Google Colab.

What is it built with?

Keras 3JAXTensorFlowPyTorchJupyter NotebookPython

How does it compare?

fchollet/deep-learning-with-python-notebooksai4finance-foundation/fingptfengdu78/lihang-code
Stars20,08520,07319,578
LanguageJupyter NotebookJupyter NotebookJupyter Notebook
Setup difficultymoderatemoderateeasy
Complexity2/53/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires installing multiple deep learning backends (JAX, TensorFlow, PyTorch) and Keras 3, GPU optional but recommended for training examples.

Use freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

This repository contains the companion Jupyter notebooks for the book "Deep Learning with Python" by Francois Chollet (the creator of Keras) and Matthew Watson. Each notebook corresponds to a chapter in the book and contains the runnable code examples from that chapter, but without the explanatory text, figures, or pseudocode that appear in the printed book. The repository covers the third edition (2025), the second edition (2021), and the first edition (2017). The notebooks are written using Keras 3, a high-level deep learning library that can run on top of three different underlying frameworks: JAX, TensorFlow, or PyTorch. You choose which one to use by setting an environment variable at the top of the notebook. The code topics covered span the full range of modern deep learning: the mathematical foundations of neural networks, image classification, convolutional network architectures, image segmentation and object detection, time series forecasting, text classification, language models and the Transformer architecture (the foundation of modern AI systems like ChatGPT), text generation, and image generation. The easiest way to run the notebooks is Google Colab, a free browser-based environment that provides GPU access, the heavy computing power needed to train neural networks. No local installation is required. Some chapters use datasets from Kaggle, an online machine learning platform, which requires a free account. You would use this repository alongside the book if you are learning deep learning and want to run and experiment with the code examples as you read. The notebooks are not standalone tutorials without the book.

Copy-paste prompts

Prompt 1
I'm reading 'Deep Learning with Python' chapter 3 on neural networks. Show me how to run the code examples from the companion notebook in Google Colab.
Prompt 2
How do I switch between JAX, TensorFlow, and PyTorch backends in these Keras 3 notebooks?
Prompt 3
I want to experiment with the Transformer architecture notebook. What changes do I need to make to train it on my own text data?
Prompt 4
Walk me through the image classification notebook step-by-step and explain what each code cell does.
Prompt 5
How do I download datasets from Kaggle and use them in these notebooks?

Frequently asked questions

What is deep-learning-with-python-notebooks?

Jupyter notebooks with runnable code examples from the book 'Deep Learning with Python,' covering neural networks, image classification, transformers, and text generation using Keras 3.

What language is deep-learning-with-python-notebooks written in?

Mainly Jupyter Notebook. The stack also includes Keras 3, JAX, TensorFlow.

What license does deep-learning-with-python-notebooks use?

Use freely for any purpose including commercial, as long as you keep the copyright notice.

How hard is deep-learning-with-python-notebooks to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is deep-learning-with-python-notebooks for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub fchollet on gitmyhub

Verify against the repo before relying on details.