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

VerticaPy Development Instruction #224

Merged
merged 4 commits into from
Feb 28, 2024
Merged
Changes from all commits
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
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,33 @@ vsql or admintools, etc. and uses the lastest VerticaPy version.
```
make uninstall
```
## VerticaPy Development

In order to use VerticaPyLab for development of VerticaPy, the following changes can be made to create a VerticaPyLab image that does not have VerticaPy installed:

1. ``cd`` into VerticaPyLab/docker-verticapy. Edit the ``requirements.txt`` file and remove "verticapy" from the list.
2. Then ``cd`` into VerticaPyLab/etc and edit ``VerticaPyLab.conf.default``. The ``VERTICAPYLAB_IMG_VERSION=latest`` can be changed to any other tag except for "latest". For example: ``VERTICAPYLAB_IMG_VERSION="no_verticapy"``.
3. Then build the image by running ``make verticapylab-build`` in the terminal.
4. Lastly start-up the container using ``make verticapylab-start``.
5. Note that you also need to start Vertica separately by running ``make vertica-start``.

Once VerticaPyLab is up and running. You can copy/clone the latest VerticaPy repo into the ``VerticaPyLab/project/data`` directory.

And then it can be installed using the below command from within the Jupyter Notebook or Terminal while you are inside the VerticaPy directory:

```
pip install .
```

If you want to make changes and test them, then simple uninstall VerticaPy using:

```
pip uninstall -y verticapy
```

Then re-install it.

Note: For your changes to take effect, you must refresh the kernel after the new installation.

## Vertica CE Container

Expand Down Expand Up @@ -188,3 +215,5 @@ For a short guide on contribution standards, see [CONTRIBUTING.md](CONTRIBUTING.
## Getting started on Windows

See the [Windows guide](windows/README.md).


Loading