Skip to content

Commit 29da94c

Browse files
authored
Merge pull request #37 from PCMDI/update_placeholder_figures
Update placeholder figures & add install doc
2 parents 8065f4b + 3db7a82 commit 29da94c

File tree

7 files changed

+127
-14
lines changed

7 files changed

+127
-14
lines changed

conda-env/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
# ==================
77
# Base
88
# ==================
9-
- python>=3.7
9+
- python>=3.10
1010
- numpy
1111
- bokeh
1212
- matplotlib

docs/examples/example_scatter_plot.ipynb

Lines changed: 62 additions & 13 deletions
Large diffs are not rendered by default.
433 KB
Loading
432 KB
Loading
433 KB
Loading

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ BSD 3-Clause License.
5353
:caption: For users:
5454

5555
overview
56+
installation
5657
gallery
5758

5859
.. toctree::

docs/installation.rst

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
.. _installation:
2+
3+
Installation
4+
============
5+
6+
The **ESMBenchmarkViz** package is not yet available on the conda-forge channel. To install it, you will need to clone the repository and install it locally using `pip`. The following steps will guide you through the process.
7+
8+
Prerequisites
9+
-------------
10+
11+
- Python 3.10 or higher
12+
- `git <https://github.com/git-guides/install-git>`_ and `pip <https://pip.pypa.io/en/stable/installation/>`_ installed on your system
13+
- `numpy <https://numpy.org/>`_, `bokeh <https://docs.bokeh.org/en/latest/>`_, `matplotlib <https://matplotlib.org/>`_ libraries installed (These will be installed automatically if you follow the conda environment setup in Step 2)
14+
- (Optional, but recommended) `conda <https://docs.conda.io/en/latest/>`_ for environment management
15+
16+
Step 1: Clone the Repository
17+
----------------------------
18+
19+
Clone the repository from `GitHub <https://github.com/PCMDI/ESMBenchmarkViz.git>`_ to your local machine:
20+
21+
.. code-block:: bash
22+
23+
git clone https://github.com/PCMDI/ESMBenchmarkViz.git
24+
cd ESMBenchmarkViz
25+
26+
Step 2: (Optional) Create and Activate a Conda Environment
27+
----------------------------------------------------------
28+
29+
It is recommended to use a `conda <https://docs.conda.io/en/latest/>`_ environment to manage dependencies. You can create and activate a new environment as follows:
30+
31+
.. code-block:: bash
32+
33+
conda create -n esmbenchmarkviz -f conda_env/environment.yml
34+
conda activate esmbenchmarkviz
35+
36+
Step 3: Install the Package
37+
---------------------------
38+
39+
Install the package using `pip` from the root directory of the cloned repository:
40+
41+
.. code-block:: bash
42+
43+
pip install .
44+
45+
Verifying the Installation
46+
--------------------------
47+
48+
After installation, you can verify that the package is installed by running:
49+
50+
.. code-block:: bash
51+
52+
python -c "import ESMBenchmarkViz; print(ESMBenchmarkViz.__version__)"
53+
54+
If you see the version number printed without errors, the installation was successful.
55+
56+
Troubleshooting
57+
---------------
58+
59+
If you encounter any issues during installation, please check that you have the required dependencies and that you are using a compatible Python version. For further assistance, refer to the `README.md <https://github.com/PCMDI/ESMBenchmarkViz/blob/main/README.md>`_ in the repository or open an issue on the `ESMBenchmarkViz GitHub page <https://github.com/PCMDI/ESMBenchmarkViz/issues>`_.
60+
61+
----
62+
63+
For more information, visit the project repository: https://github.com/PCMDI/ESMBenchmarkViz

0 commit comments

Comments
 (0)