Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install docs page #35

Merged
merged 6 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add here a link to the zip file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

* Extract them in any forlder.
* Run the installer file.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we explicitly name of the file incl. extension or is it only one file in the zip?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


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__ = "[email protected]"
__version__ = "0.1.0"
Loading