import os from shiny import module, App, ui, render, reactive import fastf1 as ff1 import matplotlib.pyplot as plt from matplotlib.collections import LineCollection from matplotlib import cm import numpy as np import shinyswatch @module.ui def sidebar_content(id): return ui.div( ui.input_select( "track_select", "Select track:", choices = ["Austria", "Hungary", "Spain", "Bahrain", "United-Kingdom"], selected = "Austria" ), ui.input_radio_buttons( "session_type", "Session type:", choices = {"R": "Race", "Q": "Qualification"}, selected = "R" ), ui.input_radio_buttons( "year", "Year:", choices = ["2023", "2022"], selected = "2023" ), width=2 )