Skip to content

Commit

Permalink
add install docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed May 6, 2024
1 parent 8e87f6c commit 890f9e9
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 6 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AI-eXtended Design (AIXD): Grasshopper plugin
# ARA: AIXD Grasshopper plugin

Grasshopper plugin for the AIXD toolkit.

Expand All @@ -11,24 +11,30 @@ Grasshopper plugin for the AIXD toolkit.
- flask

#### Latest stable version

Install `aixd_ara` using `pip`
```
```bash
pip install aixd_ara
```

Install `aixd_ara` using `conda`:
```
```bash
conda install -c conda-forge aixd_ara
```

Install the plugin in Rhino/GH using the following command:
```bash
python -m compas_rhino.install -v 7.0
```

**Note**: It is recommended to use virtual environments to manage the dependencies of your projects. If you are using
`conda`, you can create a new environment with `conda create -n myproject python=3.9` and then activate it with
`conda activate myproject` before installing `aixd_ara`.

#### Latest unstable version

Install the latest version using `pip` from the git repository:
```
```bash
pip install --upgrade git+https://github.com/gramaziokohler/aixd_ara.git
```

Expand All @@ -41,7 +47,7 @@ git clone https://github.com/gramaziokohler/aixd_ara.git
cd aixd_ara
```

Then, install using conda, to install all the dependencies into a new environment called `aixd_gh`:
Then, use conda to install all the dependencies into a new environment called `aixd_ara`:
```bash
conda env create -f environment.yml
```
Expand Down
101 changes: 101 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,104 @@
********************************************************************************
Installation
********************************************************************************

This page provides a guide for installing the ``ARA`` plugin on your system.
The plugin can be installed using an installer, or a package manager for Python such as ``pip`` or ``conda``.

The following instructions will guide you through each method.
Alternatively, you can clone the ``aixd_ara`` source code directly from
our `repository <https://github.com/gramaziokohler/aixd_ara>`_.

One-click installer
===================

The one-click installer is the easiest way to install the plugin on your system:

* Download the ZIP files.
* Extract them in any forlder.
* Run the installer file.

Installation using pip
======================

The most popular package manager for Python is ``pip``.
You can use it to install packages from the Python Package Index and other indexes.

**Step 1: Update pip**

It is good practice to ensure that you are using the latest version of ``pip``.
To update ``pip``, run the following command:


.. code-block:: bash
python -m pip install --upgrade pip
**Step 2: Install plugin**

To install `ara_aixd` using ``pip``, execute the following command:

.. code-block:: bash
pip install ara_aixd
And then install the plugin in Rhino/GH using the following command:

.. code-block:: bash
python -m compas_rhino.install -v 7.0
Installation using conda
========================

``conda`` is an open-source package management system and environment
management system that runs on Windows, macOS, and Linux.
It’s very popular in the realm of scientific computing.

**Step 1: Create a conda environment (Optional)**

It's often beneficial to create a new environment for your project. This can be done using the following command:

.. code-block:: bash
conda create --name project_name python=3.x
Replace *project_name* with your desired environment name and *3.x* with the
specific version of Python you want to use.
This package requires python 3.9 or a higher.

Activate the new environment by running:

.. code-block:: bash
conda activate project_name
**Step 2: Install plugin**

To install ``aixd_ara`` in your ``conda`` environment, use the following command:

.. code-block:: bash
conda install -c conda-forge aixd_ara
Finally, install the plugin in Rhino/GH using the following command:

.. code-block:: bash
python -m compas_rhino.install -v 7.0
Verify installation
===================

After installation, you can verify that the plugin has been successfully installed by running:

.. code-block:: bash
python -c "import aixd_ara; print(aixd_ara.__version__)"
If everything worked out correctly, the version of the installed plugin will be printed on
the screen, and you can start using the plugin in your projects.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: aixd_gh
name: aixd_ara
channels:
- conda-forge
dependencies:
Expand Down
5 changes: 5 additions & 0 deletions src/aixd_ara/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
__author__ = ["Aleksandra Apolinarska"]
__copyright__ = "Copyright (c) 2023-2024 ETH Zurich, Gramazio Kohler Research"
__license__ = "MIT License"
__email__ = "apolinarska@arch.ethz.ch"
__version__ = "0.1.0"

0 comments on commit 890f9e9

Please sign in to comment.