Utils Directory
Utils Directory
This directory contains utility scripts and documentation for managing interactive plots in the Jekyll blog.
Files
generate_plot.py
- Helper script to generate and move interactive plotsINTERACTIVE_PLOTS_SETUP.md
- Comprehensive setup guide for interactive plotsREADME.md
- This file
Usage
Generating Interactive Plots
# From the utils directory
python generate_plot.py interactive_plot.py
# With custom output name
python generate_plot.py my_plot_script.py my_custom_plot
Directory Structure
utils/
├── generate_plot.py # Plot generation helper
├── INTERACTIVE_PLOTS_SETUP.md # Setup documentation
└── README.md # This file
plots/
├── interactive_plot.py # Main plot generation script
└── [other plot scripts] # Additional plot scripts
assets/plots/
├── orthogonal_projection_3d.html # Generated HTML plots
├── orthogonal_projection_2d.html
└── [other generated plots] # Additional generated plots
Workflow
- Create plot scripts in the
../plots/
directory - Run
generate_plot.py
from theutils/
directory - Plots are automatically moved to
../assets/plots/
- Include plots in blog posts using the Jekyll include
Dependencies
Make sure you have the required Python packages installed:
pip install plotly numpy