Reproducible reports
__main__?__name__ is a special built-in variable in Python. The value of __name__ depends on how the Python file is being executed:
_name__ == “main”__name__ == the module’s name (filename without .py)Let’s use the same repostiory as we have been using in the past 2 lectures:
git pull to get the latest updates.You can open this folder with any IDE or your choice. You do not neccessarily need to do docker compose up to launch the container.
Go to the scripts directory, and run the main_test.py script.
Run the import_main_test.py script.
Observe the outputs.
__name__ changes depending on how the script is being executed.Do you have any complains with Microsoft Word documents? 😅
You are very familiar with R Markdown & Jupyter already.
You might have used LaTeX in the past.
Today we will talk about Quarto! All of the slides, website you have seeen in this course are built with Quarto!
python -m ipykernel install --user --name <conda_env_name> --display-name "Python (<conda_env_name>)"We will use this repository to demo Quarto today: https://github.com/UBC-MDS/dsci-522-individual-assignment-quarto-python
Scripts:
scripts).Reports:
Reproducibility:
