|
1 | 1 | # Basic installation |
2 | 2 |
|
3 | | -The simplest way to install the Parcels code is to use Anaconda and the `Parcels conda-forge package <https://anaconda.org/conda-forge/parcels>`\_ with the latest release of Parcels. This package will automatically install all the requirements for a fully functional installation of Parcels. This is the “batteries-included” solution probably suitable for most users. Note that we support Python 3.10 and higher. |
| 3 | +The simplest way to install the Parcels code is to use Anaconda and the [Parcels conda-forge package](https://anaconda.org/conda-forge/parcels) with the latest release of Parcels. This package will automatically install all the requirements for a fully functional installation of Parcels. This is the "batteries-included" solution probably suitable for most users. Note that we support Python 3.10 and higher. |
4 | 4 |
|
5 | | -If you want to install the latest development version of Parcels and work with features that have not yet been officially released, you can follow the instructions for a `developer installation <#installation-for-developers>`\_. |
| 5 | +If you want to install the latest development version of Parcels and work with features that have not yet been officially released, you can follow the instructions for a [developer installation](#installation-for-developers). |
6 | 6 |
|
7 | 7 | The steps below are the installation instructions for Linux, macOS and Windows. |
8 | 8 |
|
9 | | -.. \_step 1 above: |
| 9 | +(step-1-above)= |
10 | 10 |
|
11 | 11 | **Step 1:** Install Anaconda's Miniconda following the steps at https://docs.anaconda.com/miniconda/. If you're on Linux /macOS, the following assumes that you installed Miniconda to your home directory. |
12 | 12 |
|
13 | 13 | **Step 2:** Start a terminal (Linux / macOS) or the Anaconda prompt (Windows). Activate the `base` environment of your Miniconda and create an environment containing Parcels, all its essential dependencies, `trajan` (a trajectory plotting dependency used in the notebooks) and the nice-to-have cartopy and jupyter packages: |
14 | 14 |
|
15 | | -.. code-block:: bash |
| 15 | +```bash |
| 16 | +conda activate base |
| 17 | +conda create -n parcels -c conda-forge parcels trajan cartopy jupyter |
| 18 | +``` |
16 | 19 |
|
17 | | - conda activate base |
18 | | - conda create -n parcels -c conda-forge parcels trajan cartopy jupyter |
19 | | - |
20 | | -.. note:: |
21 | | - |
22 | | - For some of the examples, ``pytest`` also needs to be installed. This can be quickly done with ``conda install -n parcels pytest`` which installs ``pytest`` directly into the newly created ``parcels`` environment. |
| 20 | +```{note} |
| 21 | +For some of the examples, `pytest` also needs to be installed. This can be quickly done with `conda install -n parcels pytest` which installs `pytest` directly into the newly created `parcels` environment. |
| 22 | +``` |
23 | 23 |
|
24 | 24 | **Step 3:** Activate the newly created Parcels environment: |
25 | 25 |
|
26 | | -.. code-block:: bash |
| 26 | +```bash |
| 27 | +conda activate parcels |
| 28 | +``` |
27 | 29 |
|
28 | | - conda activate parcels |
29 | | - |
30 | | -**Step 4:** Download `a zipped copy <https://docs.oceanparcels.org/en/latest/_downloads/307c382eb1813dc691e8a80d6c0098f7/parcels_tutorials.zip>`\_ of the Parcels tutorials and examples and unzip it. |
| 30 | +**Step 4:** Download [a zipped copy](https://docs.oceanparcels.org/en/latest/_downloads/307c382eb1813dc691e8a80d6c0098f7/parcels_tutorials.zip) of the Parcels tutorials and examples and unzip it. |
31 | 31 |
|
32 | 32 | **Step 5:** Go to the unzipped folder and run one of the examples to validate that you have a working Parcels setup: |
33 | 33 |
|
34 | | -.. code-block:: bash |
35 | | - |
| 34 | +```bash |
36 | 35 | python example_peninsula.py --fieldset 100 100 |
| 36 | +``` |
37 | 37 |
|
38 | 38 | _Optionally:_ if you want to run all the examples and tutorials, start Jupyter and open the tutorial notebooks: |
39 | 39 |
|
40 | | -.. code-block:: bash |
41 | | - |
| 40 | +```bash |
42 | 41 | jupyter notebook |
| 42 | +``` |
43 | 43 |
|
44 | | -.. note:: |
45 | | - |
46 | | -The next time you start a terminal and want to work with Parcels, activate the environment with: |
47 | | - |
48 | | -.. code-block:: bash |
49 | | - |
50 | | - conda activate parcels |
| 44 | +```{note} |
| 45 | +The next time you start a terminal and want to work with Parcels, activate the environment with `conda activate parcels`. |
| 46 | +``` |
51 | 47 |
|
52 | 48 | # Installation for developers |
53 | 49 |
|
54 | | -See the `development section in our contributing guide <./community/contributing.rst#development>`\_ for development instructions. |
| 50 | +See the [development section in our contributing guide](./community/contributing.md#development) for development instructions. |
0 commit comments