Jupyter
Last updated
# Cell 1: Setup
%load_ext gofigr
import pandas as pd
import matplotlib.pyplot as plt
# Cell 2: Load data
df = pd.read_csv("experiment_results.csv")
print(f"Loaded {len(df)} rows")
# Cell 3: Visualize (automatically captured!)
plt.figure(figsize=(10, 6))
plt.scatter(df['x'], df['y'], c=df['category'], cmap='viridis')
plt.colorbar(label='Category')
plt.title("Experiment Results")
plt.xlabel("X Measurement")
plt.ylabel("Y Measurement")%load_ext gofigr
from gofigr.jupyter import configure, FindByName
configure(
workspace=FindByName("My Workspace"),
analysis=FindByName("Data Analysis", create=True),
auto_publish=True,
default_metadata={'study': 'Trial 1'}
)%load_ext gofigr
# Use gf.read_csv instead of pd.read_csv
df = gf.read_csv('data/experiment.csv')
# The DataFrame is linked to the tracked asset
# Figures created from this data will be linked to the data version