Application factory pattern in jupyter notebooks
After working with jupyter notebooks for a while, I faced an annoying boilerplate code migrating from notebook to notebook: import pandas as pd import numpy as np import seaborn as sns from pyspark.sql import SparkSession clickhouse = create_engine(…) spark = SparkSession.builder.appName(app_name).getOrCreate() minio = boto3.client("s3...
world.hey.com