Working with the CLI
Purpose
Use the OpenPinch CLI when you want to copy maintained notebook sources into a working directory. The CLI is an onboarding and asset-copy surface only. Validation, targeting, graph export, Excel export, dashboards, and advanced workflows are Python workflows.
Prerequisites
Install the package and, if you plan to run notebooks, the notebook extra:
python -m pip install openpinch
python -m pip install "openpinch[notebook]"
Sample Asset
Notebook 01 is the recommended first copied asset:
01_first_solve_summary_graphs.ipynbFirst solve, summary tables, graphing, and workspace sensitivity.
Runnable Workflow
Copy the full notebook series:
openpinch notebook -o notebooks
Copy one notebook:
openpinch notebook --name 01_first_solve_summary_graphs.ipynb -o notebooks
The packaged notebook series is:
01_first_solve_summary_graphs.ipynb02_total_site_sugcc_interpretation.ipynb03_multiperiod_workspace_scenarios.ipynb04_carnot_heat_pump_screening.ipynb05_direct_gas_stream_mvr_scenarios.ipynb06_vapour_compression_mvr_cascade_hpr.ipynb07_heat_exchanger_network_synthesis.ipynb08_energy_transfer_analysis.ipynb09_schema_service_exports_and_bundles.ipynb10_multiperiod_hpr_shared_design.ipynb
Expected Output
The command writes clean notebook source files into the output directory. The packaged notebooks ship without execution counts, stored Plotly data, cached tracebacks, or hidden local-state assumptions.
Interpretation
Move to Python as soon as you need to:
solve a case
validate source data
export Excel or HTML graph artifacts
use
PinchProblemorPinchWorkspacecall
problem.target.*,problem.plot.*, orproblem.design.*
OpenPinch intentionally does not provide CLI commands for solving, graph export, or validation.
Next Steps
First Solve with Python for the canonical solve workflow.
Notebooks and Sample Cases for Python resource helpers.
CLI and Resources for the exact CLI and asset APIs.