python
19 lines · 1 tab
Dr. Elena Vasquez
Apr 2026
1 tab
# Jupyter notebook startup cell
%load_ext autoreload
%autoreload 2
%matplotlib inline
import os
import random
import numpy as np
import pandas as pd
SEED = 42
random.seed(SEED)
np.random.seed(SEED)
pd.set_option('display.max_columns', 200)
pd.set_option('display.width', 120)
DATA_ROOT = os.getenv('DATA_ROOT', 'data')
print('using data root:', DATA_ROOT)
1 file · python
Explain with highlit
Notebooks are great for exploration but dangerous when they become invisible production dependencies. I keep them reproducible by pinning environments, clearing stale state, and structuring them so rerunning from top to bottom works every time. If a result matters, it should survive a fresh kernel.
Share this code
Here's the card — post it anywhere.