gaspype/examples
Nicolas Kruse 5fd7ad345c sofc example fixes of the extension 2025-07-28 14:50:08 +02:00
..
README.md Examples added, example readme and example unit test updated 2025-06-06 13:15:34 +02:00
hydrogen_production_thermodynamics.md comment lines in example removed 2025-07-21 11:39:51 +02:00
methane_mixtures.md unified nomenclature in methane example 2025-07-21 11:39:51 +02:00
soec_syngas.md fix in SOEC example 2025-07-22 13:10:04 +02:00
sofc_methane.md sofc example fixes of the extension 2025-07-28 14:50:08 +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/soec_methane.md --to notebook --output docs/source/_autogenerated/soec_methane.ipynb --run

# Converting the Jupyter Notebook to Markdown and a folder with image
# files placed in docs/source/_autogenerated/:
jupyter nbconvert --to markdown docs/source/_autogenerated/soec_methane.ipynb --output soec_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