Dr Parisa Gregg

Parisa has a PhD in Particle Physics from Durham University, which she undertook within the CDT in Data Intensive Science. She enjoys programming in Python and applying machine learning to real-world problems.

Reproducible reports with Jupyter

Authors: Parisa Gregg & Myles Mitchell

Jupyter notebooks are a popular tool for data scientists using Python. They allow us to mix together plain text (formatted as Markdown) with Python code. In this post, we will show you how to produce reproducible PDF and HTML reports from a Jupyter notebook using Quarto.

Quarto for the Python user

Authors: Parisa Gregg & Myles Mitchell

As data scientists we often need to communicate conclusions drawn from data. Additionally, as more data is collected, our reports invariably need updating. In this blog post we will look at how Quarto allows us to weave together text and Python code to generate automated reports.

Customising figures in Matplotlib

Author: Parisa Gregg

When creating graphs for a report or publication we usually want to ensure they follow a certain style. In this blog post we will look at formatting and colourmap customisation in the popular Matplotlib library.

Python API deployment with RStudio Connect: Flask

Author: Parisa Gregg

RStudio Connect (soon to be Posit Connect) is a platform that provides the ability to deploy and share R applications and reports. However, it is not just for R developers (hence the name change). RStudio Connect also supports many Python applications, including Flask. In this blog we will look at how to deploy a Flask app to RStudio Connect.

Have we got NEWS.md for you

Authors: Myles Mitchell & Parisa Gregg

Roll up, roll up! Most R packages contain a NEWS file which documents the changes between each release. However, there is no definitive convention for how to format this file. In this post we will share some top tips for writing NEWS files, so that by the end you will be able to tell “good” NEWS from “fake” NEWS!

Stylising your Python code

Authors: Parisa Gregg & Myles Mitchell

Have you ever wished your code could be as stylish as you? Linting is a process which helps ensure the format and style of your code adheres to best coding practices. Read on to learn about linters and auto-formatters, and start adding some PEP to your Python!