This repo provides the slides and the materials for the talk I gave at PyConDE/PyDataBerlin 2022, on Tuesday April 12nd.
I've made the slides with Streamlit,
so you need to run some pip install
before you can see the slides :).
It works with python 3.9.10 on my laptop. It should be working with python >=3.6, but I have not tested it though.
pip install -r requirements.txt
pre-commit install # You can skip this if you don't intend to make new commits
dvc pull -R .
dvc exp pull origin -A
Just run:
streamlit run st_talk_slides.py
You should see the first slide with the title:
From there, you can navigate through the slides with the menu in the left sidebar. Please open an issue if you got trouble with the slides 🙏.
I've made the slides with Streamlit for several reasons:
- to show the code and its execution in the slides, to avoid switching to a web browser during the presentation
- to make the slide more interactive
- because the talk was about Streamlit, kind of inception 🌀
I used streamlit-book for the page layout. Many thanks sebastiandres for the awesome work 🙏 👍.
Path | Description |
---|---|
st_talk_slides.py | The main Streamlit script for the slides. |
./code_samples | Code samples that were run "as is" in the slides. |
./images | The images of the slides. |
./src | Source code for the training pipeline: no streamlit here, only Python and DVC |
./utils | Utility functions for the slides e.g, display HTML and CSS, command line in Streamlit etc |
- 1️⃣ Add experiments in the queue. For instance, if you want to change the train seed:
dvc exp run --set-params train.seed=0106 --queue
➡️ you can look at available parameters in the params.yaml file here
- 2️⃣ Run the experiments that are in the queue:
dvc exp run --run-all
- 3️⃣ Check the results:
dvc exp show
- 4️⃣ Save the experiments to the remote git server and data storage (requires forking this repo & setting up your own dvc remote):
git push
dvc exp push origin --rev HEAD
⚠️ A note on DVC remote storage: remote storage is the Sicara's public s3 bucket (see dvc config file). By default, you have permission to read (dvc pull
) but you cannot write (dvc push
). If you want to run experiments and save your result withdvc push
, consider adding your own dvc remote.