gaspype/examples
Nicolas Kruse 75ac3728a3 Example-readme updated with correct example file name 2026-07-14 10:20:03 +02:00
..
README.md Example-readme updated with correct example file name 2026-07-14 10:20:03 +02:00
hydrogen_production_thermodynamics.md comment lines in example removed 2025-07-21 11:39:51 +02:00
methane_mixtures.md replaced old "active_species" property in the examples by "species" 2025-11-17 13:51:00 +01:00
soec_syngas.md SOC examples updated to use new slicing 2025-09-03 15:57:55 +02:00
sofc_methane.md SOC examples updated to use new slicing 2025-09-03 15:57:55 +02:00
sulfur_oxygen_equalibrium.md figures in sulfur example improved 2025-07-03 15:11:17 +02:00
thermodynamic_carbon_activity.md example text improved 2025-07-21 11:39:51 +02:00

README.md

Example scripts

Examples can be looked-up in the documentation rendered with results.

The gaspype examples from this directory are available in the documentation as downloadable Jupyter Notebooks or plain python scripts with comments.

The conversion is done like the following automated by the docs/source/render_examples.py script:

# Converting markdown with code sections to Jupyter Notebook and run it:
notedown examples/sofc_methane.md --to notebook --output docs/source/api/sofc_methane.ipynb --run

# Converting the Jupyter Notebook to Markdown and a folder with image
# files placed in docs/source/api/:
jupyter nbconvert --to markdown docs/source/api/sofc_methane.ipynb --output sofc_methane.md

A new example Markdown file can be created from a Jupyter Notebook running the following command:

jupyter nbconvert --to markdown new_example.ipynb --NbConvertApp.use_output_suffix=False --ClearOutputPreprocessor.enabled=True --output-dir examples/ --output new_example.md