Documentation

Jupyter Integration

Epochly provides seamless integration with Jupyter notebooks.

Quick Start

%load_ext epochly

Magic Commands

%epochly stats

Show current optimization statistics:

%epochly stats

Output:

Epochly Status:
Current Level: 2 (JIT)
Functions Optimized: 12
Total Speedup: 4.7x
Memory Pool: 256MB

%epochly on/off

Toggle Epochly for the notebook:

%epochly off # Disable
%epochly on # Enable

%epochly level

Set enhancement level:

%epochly level 3 # Set to Level 3 (Multicore)

Cell Magic

Optimize specific cells:

%%epochly level=2
def compute_heavy():
# This cell uses Level 2 (JIT)
return sum(i**2 for i in range(1000000))

Kernel Setup

Install Epochly kernel:

epochly jupyter install

This creates an "Epochly Python" kernel with automatic activation.

Best Practices

  1. Use stats frequently to monitor optimization
  2. Disable for debugging when isolating issues
  3. Set explicit levels for reproducible notebooks
  4. Export with %epochly off for sharing