This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from typing import List | |
from anki.storage import Collection | |
# the deck: https://ankiweb.net/shared/info/2072613354 | |
# TODO replace YOUR_USER_NAME | |
col = Collection('/Users/{YOUR_USER_NAME}/Library/Application Support/Anki2/User 1/collection.anki2') | |
deck_id = col.decks.id('WaniKani') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fastf1 as ff1 | |
from fastf1 import plotting | |
from matplotlib import pyplot as plt | |
plotting.setup_mpl() | |
ff1.Cache.enable_cache('/Volumes/My Passport/Documents/f1/cache') # optional but recommended | |
race = ff1.get_session(2021, 'Saudi Arabia Grand Prix', 'R') | |
laps = race.load_laps(with_telemetry=True) |