Environment:1jehuang Jcode Python Data Stack
| Knowledge Sources | |
|---|---|
| Domains | Analytics, Visualization |
| Last Updated | 2026-10-18 00:00 GMT |
Overview
Python data analysis and visualization stack (matplotlib, NumPy, seaborn) used by jcode's reporting and dashboard scripts for generating static charts and figures.
Description
The Python Data Stack environment provides the scientific Python libraries required by jcode's standalone analysis scripts. It bundles matplotlib for 2D plotting, NumPy for numerical array operations, and seaborn for statistical visualizations. Scripts using this environment produce static PNG outputs with dark-themed dashboards, heatmaps, and scatter plots. The environment assumes a Python 3 interpreter with pip available for dependency installation.
Usage
Use this environment for scripts that generate static visualizations from hardcoded or computed datasets. The trigger is: "the script imports matplotlib, numpy, or seaborn and outputs an image file."
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux, macOS, Windows | Cross-platform Python support |
| Python | >= 3.9 | Required by matplotlib 3.x and seaborn 0.13+ |
| Hardware | Modest CPU/RAM | Chart generation is lightweight; 256MB+ RAM sufficient |
Dependencies
System Packages
- Python 3.9+
pipfor package installation
Python Packages
matplotlib>= 3.5numpy>= 1.20seaborn>= 0.13
Quick Install
# Install the required packages:
pip install matplotlib numpy seaborn
# Verify:
python -c "import matplotlib, numpy, seaborn; print('OK')"
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
ModuleNotFoundError: No module named 'matplotlib' |
Dependencies not installed | Run pip install matplotlib numpy seaborn
|
RuntimeError: Could not open display |
No DISPLAY on headless server |
Set MPLBACKEND=Agg for non-interactive rendering
|
Compatibility Notes
- Headless rendering: Scripts set the matplotlib backend to
Aggimplicitly viaplt.savefig(); no display is required. - Output paths: Scripts write to fixed paths (e.g.
/tmp/); adjust the output path in the script for custom locations.