# 興大附中天文黑客松
## 2022-03-05
蘇羿豪
[創用CC 姓名標示 4.0](https://creativecommons.org/licenses/by/4.0/deed.zh_TW)
---
## 開場介紹
* 介紹[g0v零時小學校](https://sch001.g0v.tw/)、[g0v社群](https://g0v.tw/)及[黑客松](https://jothon.g0v.tw/)
* 介紹g0v零時小學校Demo Day獲獎專案「[鄉民都來開拓公民天文學家的地圖[0]:從互動式開源教材開始](https://hackmd.io/@astrobackhacker/HJXEndF6t#/)」
---
## 工作坊 - 教材製作教學
1. 註冊登入[Replit](https://replit.com/) - 能在線上開發程式的平台
2. 以Import from GitHub的方式Create a repl
* [DataDrivenAstroEdu_Keplers_law](https://github.com/YihaoSu/DataDrivenAstroEdu_Keplers_law)
* [DataDrivenAstroEdu_data-query-examples](https://github.com/Astrohackers-TW/DataDrivenAstroEdu_data-query-examples)
* [DataDrivenAstroEdu_exoplanets-distance](https://github.com/YihaoSu/DataDrivenAstroEdu_exoplanets-distance)
3. 在介面右下角的shell處輸入以下指令
```shell
pip install -r requirements.txt
streamlit run app.py
```
---
## 開始動手hack吧^^
### [題目](https://hackmd.io/_v-oZ8ZDQ4ihEr7qE6D0Jg?view#%E5%B0%88%E6%A1%88%E6%8F%90%E8%AD%B0%E3%80%81%E6%83%B3%E8%A7%A3%E6%B1%BA%E7%9A%84%E5%95%8F%E9%A1%8C)
* 用Streamlit製作用來示範如何以Python抓取並視覺化天文資料的教材
* 基於天文資料抓取的教材範例,用Streamlit及天文資料製作用來展示課堂物理數學等基礎科學知識的教材
---
## 補充:將Streamlit app放到[Streamlit cloud](https://streamlit.io/cloud)上
1. 註冊[GitHub](https://github.com/)及[streamlit](https://share.streamlit.io/)帳號
2. 點擊Replit專案中左側選單的分叉小圖「Version control」
3. Create a Git repo. 後點擊Connect to GitHub將程式放到GitHub上
4. 在Streamlit cloud中新增app並填好程式相關欄位後按deploy
{"metaMigratedAt":"2023-06-16T20:36:32.904Z","metaMigratedFrom":"Content","title":"興大附中天文黑客松","breaks":true,"contributors":"[{\"id\":\"7bfcaa24-1bf3-4e2c-bc97-a9c0bea330f7\",\"add\":1535,\"del\":114}]"}