From b051ff17e89c16574582fad470285e975de07891 Mon Sep 17 00:00:00 2001 From: Willy Guenthner Date: Tue, 23 Apr 2024 11:20:24 -0500 Subject: [PATCH] cleaned up markdown in template --- examples/template.ipynb | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/examples/template.ipynb b/examples/template.ipynb index c5e467e..f20f21f 100644 --- a/examples/template.ipynb +++ b/examples/template.ipynb @@ -10,23 +10,12 @@ "\n", "The most straight-forward application of PyThermo is in forward modeling apatite and zircon (U-Th)/He dates. First, set-up the PyThermo package. You can do this one of two ways. Either install with pip (see this [helpful](https://packaging.python.org/en/latest/tutorials/installing-packages/) guide for using pip if you are unfamiliar) by using this bit of text `pip install pythermo`, or co-locate the folder `/src` with its various files (`__int__.py`,`constants.py`, `crystal.py`, `tT_model.py`, and `tT_path.py`) within the same directory as this notebook. Below I include example code with both approaches.\n", "\n", - "If you've installed PyThermo, use this bit of code:" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import pythermo as pyt" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "If you're using the source files directly, run this bit:" + "If you've installed PyThermo, run the bit of code below. If you have not installed PyThermo and would like to run from the source folder, replace the code block below with:\n", + "```\n", + "import sys\n", + "sys.path.append('./src')\n", + "import pythermo as pyt\n", + "```" ] }, { @@ -35,9 +24,6 @@ "metadata": {}, "outputs": [], "source": [ - "import sys\n", - "sys.path.append('./src')\n", - "\n", "import pythermo as pyt" ] },