This is the repository for the project within Master of Applied Data Science course "Data Analysis & Visualisation".
- First, make sure you have python >= 3.11. You can check the version with
python --version
. - Make sure
rye
is there. Alternatively, usepip
to install your environment.- check if it is installed by executing
rye --help
- check if it is installed by executing
- Install the dependecies: navigate to the MADS-DAV folder where the
pyproject.toml
is located - run
rye sync
.
Download a chat from Whatsapp and put it in the data/processed
folder.
In config.toml change the filename settings accordingly.
input =
csv = should be something like :"whatsapp-XXX-XXX.csv"
current = should be something like :"whatsapp-XXX-XXX.parq"
source .venv/bin/activate
For Windows:
source .venv/Scripts/activate
This will activate your virtual environment. You can check which python is being used by running:
which python
After this, you can run the visualization with the following command, indicating the week number for the visualisation you want to see (number 1-5):
visualizer --week <nr>
visualizer --all # to run all the visualizations
Start your environment as described above then run:
cd dashboards # cd-ing into the correct folder
streamlit run dashboard_1.py # executing the script
If you run this on a VM, VScode should automatically forward your port on :8501
. You can see this under the tab Ports
, next to the tab for Terminal
.
Locally, you can open http://localhost:8501/
and you should see your dashboard!