-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.. _installing: | ||
|
||
Install xarray-simlab | ||
===================== | ||
|
||
Required dependencies | ||
--------------------- | ||
|
||
- Python 3.4 or later. | ||
- `numpy <http://www.numpy.org/>`__ | ||
- `xarray <http://xarray.pydata.org>`__ (0.8.0 or later) | ||
|
||
Optional dependencies | ||
--------------------- | ||
|
||
For model visualization | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
- `graphviz <http://graphviz.readthedocs.io>`__ | ||
|
||
Install from source | ||
------------------- | ||
|
||
There is currently no ``xarray-simlab`` release available at PyPi_ | ||
or conda-forge_. | ||
|
||
Be sure you have the required dependencies (numpy and xarray) | ||
installed first. You might consider using conda_ to install them:: | ||
|
||
$ conda install xarray numpy pip -c conda-forge | ||
|
||
A good practice (especially for development purpose) is to install the packages | ||
in a separate environment, e.g. using conda:: | ||
|
||
$ conda create -n simlab_py36 python=3.6 xarray numpy pip -c conda-forge | ||
$ source activate simlab_py36 | ||
|
||
Then you can clone the ``xarray-simlab`` git repository and install it | ||
using ``pip`` locally:: | ||
|
||
$ git clone https://github.com/benbovy/xarray-simlab | ||
$ cd xarray-simlab | ||
$ pip install . | ||
|
||
For development purpose, use the following command:: | ||
|
||
$ pip install -e . | ||
|
||
.. _PyPi: https://pypi.python.org/pypi | ||
.. _conda-forge: https://conda-forge.github.io/ | ||
.. _conda: http://conda.io/ | ||
|
||
Import xarray-simlab | ||
-------------------- | ||
|
||
To make sure that ``xarray-simlab`` is correctly installed, try import it in a | ||
Python console:: | ||
|
||
>>> import xrsimlab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters