%23%20%2F%2F%2F%20script%0A%23%20%5Btool.marimo-studio%5D%0A%23%20default%20%3D%20%22briefing%22%0A%23%20%2F%2F%2F%0A%0Aimport%20marimo%0A%0A__generated_with%20%3D%20%220.25.2%22%0Aapp%20%3D%20marimo.App(width%3D%22medium%22%2C%20app_title%3D%22Capstone%20%C2%B7%20Presenting%22)%0A%0Awith%20app.setup%3A%0A%20%20%20%20%23%20The%20setup%20cell%20runs%20first.%20It%20holds%20the%20imports%20and%20settings%20every%20other%20cell%20uses.%0A%20%20%20%20import%20marimo%20as%20mo%0A%0A%20%20%20%20import%20course%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20_()%3A%0A%20%20%20%20mo.md(r%22%22%22%0A%20%20%20%20%23%20Capstone%20%C2%B7%20Presenting%0A%0A%20%20%20%20At%2015%3A45%20every%20group%20presents%20its%20capstone%20from%20one%20laptop.%20This%20notebook%20reads%20every%20note%20saved%20in%20this%20course%20folder's%20%60notes%2F%60%20folder%20(the%20capstone%20notebooks%20save%20them%20as%20%60notes%2F%3Cgroup%3E.md%60)%20and%20shows%20one%20group's%20note%2C%20section%20by%20section.%20Its%20page%2C%20**briefing**%2C%20shows%20the%20same%20note%20full%20screen%2C%20one%20section%20at%20a%20time.%0A%0A%20%20%20%20**Before%2015%3A45%2C%20on%20the%20presenting%20laptop%3A**%0A%0A%20%20%20%201.%20Copy%20each%20group's%20note%20into%20%60notes%2F%60%3A%20they%20are%20plain%20text%20files%2C%20so%20a%20USB%20stick%20or%20the%20group%20chat%20works.%20A%20group%20that%20presents%20from%20its%20own%20laptop%20needs%20nothing%20copied.%0A%20%20%20%202.%20Press%20**Refresh%20the%20notes**%20below%3A%20each%20group%20is%20listed%20by%20the%20name%20it%20typed.%0A%20%20%20%203.%20In%20a%20terminal%2C%20in%20this%20folder%3A%20%60uv%20run%20--with%20marimo-studio%3D%3D0.4.1%20marimo%20run%2036_capstone_presentation.py%60.%20The%20browser%20opens%20the%20briefing%20page%3B%20pick%20the%20group%20presenting%2C%20and%20move%20through%20its%20note%20with%20**Next**%20and%20**Back**%2C%20or%20click%20the%20page%20once%20and%20use%20the%20arrow%20keys.%20The%20first%20such%20command%20downloads%20marimo%20Studio%20(about%2020%20MB)%20without%20changing%20the%20course's%20packages.%20Stop%20it%20with%20Ctrl%20%2B%20C.%0A%0A%20%20%20%20The%20page%20reads%20the%20notes%20on%20this%20laptop%20only%3A%20nothing%20is%20sent%20anywhere.%0A%20%20%20%20%22%22%22)%0A%20%20%20%20return%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20_()%3A%0A%20%20%20%20course.presentation_card()%0A%20%20%20%20return%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20_()%3A%0A%20%20%20%20refresh_notes%20%3D%20mo.ui.button(label%3D%22Refresh%20the%20notes%22%2C%20value%3D0%2C%20on_click%3Dlambda%20v%3A%20v%20%2B%201)%0A%20%20%20%20refresh_notes%0A%20%20%20%20return%20(refresh_notes%2C)%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20group_control(refresh_notes)%3A%0A%20%20%20%20%23%20The%20group%20picker%2C%20named%20so%20the%20briefing%20page%20can%20place%20it%0A%20%20%20%20refresh_notes.value%20%20%23%20pressing%20Refresh%20lists%20the%20notes%20again%0A%20%20%20%20groups%20%3D%20course.saved_groups()%0A%20%20%20%20group_choice%20%3D%20mo.ui.dropdown(options%3Dgroups%2C%20value%3Dgroups%5B0%5D%20if%20groups%20else%20None%2C%20label%3D%22Group%20presenting%3A%22)%0A%20%20%20%20group_choice%20if%20groups%20else%20mo.callout(mo.md(%22No%20note%20saved%20in%20%60notes%2F%60%20yet.%20Copy%20the%20groups'%20notes%20there%2C%20then%20press%20**Refresh%20the%20notes**.%22)%2C%20kind%3D%22neutral%22)%0A%20%20%20%20return%20(group_choice%2C)%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20briefing_note(group_choice)%3A%0A%20%20%20%20%23%20The%20chosen%20group's%20note%2C%20section%20by%20section%3A%20the%20value%20the%20briefing%20page%20shows%0A%20%20%20%20briefing%20%3D%20course.note_briefing(group_choice.value%20or%20%22%22)%0A%20%20%20%20return%20(briefing%2C)%0A%0A%0A%40app.cell(hide_code%3DTrue)%0Adef%20_(briefing)%3A%0A%20%20%20%20mo.stop(not%20briefing%5B%22group%22%5D)%0A%20%20%20%20_made%20%3D%20%22%5Cn%22.join(f%22-%20%60%7Bp%7D%60%22%20for%20p%20in%20briefing%5B%22made%22%5D)%20or%20%22(nothing%20listed)%22%0A%20%20%20%20mo.md(f%22%23%23%20%7Bbriefing%5B'group'%5D%7D%5Cn%5Cn%7Bbriefing%5B'option'%5D%7D%20%C2%B7%20%7Bbriefing%5B'members'%5D%7D%5Cn%5Cn%22%0A%20%20%20%20%20%20%20%20%20%20%2B%20%22%5Cn%5Cn%22.join(f%22%23%23%23%20%7Bs%5B'heading'%5D%7D%5Cn%5Cn%7Bs%5B'text'%5D%7D%22%20for%20s%20in%20briefing%5B%22sections%22%5D)%0A%20%20%20%20%20%20%20%20%20%20%2B%20f%22%5Cn%5Cn%23%23%23%20What%20we%20made%5Cn%5Cn%7B_made%7D%22)%0A%20%20%20%20return%0A%0A%0Aif%20__name__%20%3D%3D%20%22__main__%22%3A%0A%20%20%20%20app.run()%0A
bf18d51e2d8c5ccf5b494637f9ae8091