mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 08:25:56 +02:00
[PR #24] Fix matplotlib import error with lazy import and fallback colors #79
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/24
Author: @Jal-Bafana
Created: 12/2/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (2)
eca3d31Fix matplotlib import error with lazy import and fallback colorsd57bdc3Fix matplotlib import error with lazy import and fallback colors📊 Changes
2 files changed (+94 additions, -49 deletions)
View changed files
📝
main.py(+6 -17)📝
src/f1_data.py(+88 -32)📄 Description
Problem
The application fails to start on Python 3.13 due to a matplotlib import error when importing
fastf1.plottingat module level.Solution
fastf1.plottingimport lazy (only when needed)Changes
import fastf1.plottingget_driver_colors()Testing
Tested on Python 3.13 where original code failed. Application now starts successfully.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.