π M.Sc. Computer Science
Third Semester Syllabus Explorer
""", unsafe_allow_html=True)
# Sidebar
st.sidebar.title("π Navigation")
# Search functionality
search_term = st.sidebar.text_input("π Search Topics", placeholder="Enter topic to search...")
# Paper selection
selected_paper = st.sidebar.selectbox(
"Select Paper",
["All Papers"] + list(syllabus_data.keys()),
index=0
)
# Unit filter
if selected_paper != "All Papers":
units = list(syllabus_data[selected_paper].keys())
selected_unit = st.sidebar.selectbox(
"Select Unit",
["All Units"] + units,
index=0
)
else:
selected_unit = "All Units"
# Statistics
st.sidebar.markdown("### π Quick Stats")
total_papers = len(syllabus_data)
total_units = sum(len(paper_data) for paper_data in syllabus_data.values())
total_topics = sum(
len(unit_data)
for paper_data in syllabus_data.values()
for unit_data in paper_data.values()
)
col1, col2, col3 = st.sidebar.columns(3)
with col1:
st.markdown(f"""