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: 12Total Speedup: 4.7xMemory 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=2def 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
- Use stats frequently to monitor optimization
- Disable for debugging when isolating issues
- Set explicit levels for reproducible notebooks
- Export with %epochly off for sharing