Skip to main content

A python for data analysis related to LEXI

Project description

lexi

Main repository for all data analysis related to LEXI

Installation Guide

The next section of this document will guide you through the installation process of lexi.

Though it is not necessary, we strongly recommend that you install lexi in a virtual environment. This will prevent any conflicts with other Python packages you may have installed.

A virtual environment is a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages. You can install packages into a virtual environment without affecting the system Python installation. This is especially useful when you need to install packages that might conflict with other packages you have installed.

Creating a virtual environment

There are several ways to create a virtual environment. We recommend using python3 to do so.

For this exercise, we will assume that you have a directory called Documents/lexi where you will install lexi and create your virtual environment. Please replace Documents/lexi with the actual path to the directory where you want to install lexi and create your virtual environment.

  • cd into Documents/lexi

Using python3

You can create a virtual environment called lexi_venv (or any other name you might like) using python3 by running the following command:

    python3 -m venv lexi_venv

You can activate the virtual environment by running the following command:

on Linux/MacOS:

    source lexi_venv/bin/activate

on Windows:

    .\lexi_venv\Scripts\activate

You can deactivate the virtual environment by running the following command:

    deactivate

Installing Lexi

Installing from PyPI

After you have created and activated your virtual environment, you can install lexi from PyPI by running the following command:

    pip install lexi_bu

Installing from source

After you have created and activated your virtual environment, you can install lexi directly from GitHub by running the following command:

    pip install git+https://github.com/Lexi-BU/lexi

Installing from a local copy

After you have created and activated your virtual environment, you can install lexi from a local copy by following these steps:

  1. Download lexi-version.tar.gz directory from the following link: Download LEXI Software

  2. Copy the lexi-version.tar.gz file into Documents/lexi (or any other directory where you want to install lexi in).

  3. Activate your virtual environment using the instructions above.

  4. Install lexi by running the following command (NOTE: replace lexi-version.tar.gz with the actual name of the file you downloaded):

        pip install lexi-version.tar.gz
    

This will install lexi and all its dependencies.

Verifying the installation

You can verify that lexi was installed by running the following command:

    pip show lexi

which should produce output similar to the following:

    Name: lexi
    Version: 0.0.1
    Summary: Main repository for all data analysis related to LEXI
    Home-page: 
    Author: qudsiramiz
    Author-email: qudsiramiz@gmail.com
    License: GNU GPLv3
    Location: /home/cephadrius/Desktop/lexi_code_test_v2/lexi_test_v2/lib/python3.10/site-packages
    Requires: cdflib, matplotlib, pandas, pytest, toml
    Required-by: 

You can also verify that lexi was installed by running the following command:

    pip list

which should produce output similar to the following:

    Package         Version
    --------------- -------
    .....................
    kiwisolver      1.4.5
    lexi            0.0.1
    matplotlib      3.8.2
    numpy           1.26.4
    .....................

You can open a Python shell and import lexi by running the following command:

    python
    import lexi
    lexi.__version__

which should produce output similar to the following:

'0.0.1'

If that worked, congratulations! You have successfully installed lexi.

Using LEXI Software

NOTE: We will add more examples and tutorials in the future. For now, we will use a Jupyter Notebook to demonstrate how to use lexi to analyze data from LEXI.

Using the Example Jupyter Notebook

  1. If you haven't already, download the example folder from the following link: Download LEXI Examples and extract it to a directory of your choice. We will refer to this directory as examples for the rest of this document.

  2. Activate your virtual environment. If you haven't already created a virtual environment, please refer to the creating a virtual environment section for instructions on how to do so. Remember that you can activate your virtual environment by running the following command:

on Linux/MacOS:

    source lexi_venv/bin/activate

on Windows:

    .\lexi_venv\Scripts\activate
  1. cd into the examples directory and

  2. If you haven't already, install Jupyter Notebook by running the following command:

    pip install jupyter
  1. Open the Jupyter Notebook by running the following command:
    jupyter notebook lexi_tutorial.ipynb
  1. This will open a new tab in your web browser and will look like the image below:

Jupyter Notebook

  1. You can now run the cells in the Jupyter Notebook to see how to use lexi to analyze data from LEXI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lexi_bu-0.3.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lexi_bu-0.3.1-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file lexi_bu-0.3.1.tar.gz.

File metadata

  • Download URL: lexi_bu-0.3.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for lexi_bu-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5d7d08b4565ea0b1985423da04646ab957edb7eeeaecae70ea763656e7153832
MD5 2de468de6953c2fe6591285a9c86f05e
BLAKE2b-256 9a0a7bb930cbb5f1ad76ad98cf9f9abdc64977ce67b1604c5d52e96a8ad85412

See more details on using hashes here.

File details

Details for the file lexi_bu-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: lexi_bu-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for lexi_bu-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 362e6d8f391dd82f515098d384989707af8292c0408ed8fafde259af72a6c003
MD5 7f3a29cc5c9ff7d40042dd63db4679ee
BLAKE2b-256 fde1857f7c6ad544c64684019974418610fc461a761395cd138f5e95267e9859

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page