Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Once you have checked that all services are up and running by navigating to localhost:8080
, you can log in to your Airflow instance and see (and even operate) your DAG.”
A block of code is set as follows:
class MetricsPlugin(AirflowPlugin): """Defining the plugin class""" name = "Metrics Dashboard Plugin" flask_blueprints = [metrics_blueprint] appbuilder_views = [{ "name": "Dashboard", "category": "Metrics", "view": MetricsDashboardView() }]
Any command-line input or output is written as follows:
$ pip install airflowctl
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “To find the connections section of Apache Airflow, navigate to the top bar of the Airflow UI. By selecting Admin, the drop-down menu will show Connections.”
Tips or important notes
Appear like this.