Skip to main content

Example code and user interface for the ITR project.

Project description

ITR-examples

Example data and user interface for the ITR project

Getting started with the user interface

If you use Anaconda environments, open an Anaconda prompt window, navigate to the root of the ITR release (ITR-develop) and run:

conda env create -f environment.yml
conda activate itr_ui

For virtual environments, open a command prompt/terminal window, navigate to the root of the ITR release and run

python3 -m venv itr_ui

On Unix or MacOS, activate the environment with

source itr_ui/bin/activate

On Windows, activate the environment with

itr_ui\Scripts\activate

To install the tool (or upgrade to the latest release) run:

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade itr-examples

Now you are ready to run the tool:

itr-ui

You can also load specific content using the syntax:

itr-ui "data/20230106 ITR V2 Sample Data.xlsx"

Note the python commands are python for windows and python3 for linux/mac. If no file is specified, the tool uses a default, small ITR dataset. With a filename given, the ITR tool will load data from that dataset. The 20230106 data template has over 120 companies across nearly a dozen sectors.

Finally, to access the user interface open a browser window and navigate to: http://127.0.0.1:8050/

Jupyter notebooks

To work with notebooks from the 'examples' directory please register the kernel from your virtual environment such that it is available in Jupyter. Kernels from Anaconda environments will be available by default. Replace <env_name> in the following command by your environment name (itr_ui or itr_env) and run it in your environment.

python -m ipykernel install --user --name=<env_name>

Start Jupyter by activating your environment and running

jupyter-notebook

Getting started for Contributors/Developers

If you haven't done so already, follow the installation instructions above.

Make sure you have sourced the virtual environment using:

source itr_env/bin/activate

...Or under Windows:

itr_env\Scripts\activate

The commands below will upgrade to the latest release and install the components necessary for development:

python3 -m pip install --upgrade pip
python3 -m pip install --upgrade itr-examples
pip install -e .[dev]

docs/ITR_demo.gif

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

itr_examples-1.1.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

itr_examples-1.1.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file itr_examples-1.1.1.tar.gz.

File metadata

  • Download URL: itr_examples-1.1.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for itr_examples-1.1.1.tar.gz
Algorithm Hash digest
SHA256 af33f325de50afd14d2ad19fbd66707e3b4674e9bce50c9adaf30fe4d48a316c
MD5 24d9cf7790b4ce3925b7a0c047abf85c
BLAKE2b-256 03d4f1699d64b95fab3d4cb3705c4939c819c6c32a3df6491a36bd5b050e60f7

See more details on using hashes here.

File details

Details for the file itr_examples-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: itr_examples-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for itr_examples-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d102819489d8d1c523a1975127ddc05a8f27adfe748ca4764baae844da8278a1
MD5 abe86ce71b9fd23ac39560c6cd2148fe
BLAKE2b-256 e3c15f75d88ff5bc601a745a7edcc859764ed1c01e45becd3af0878089656a53

See more details on using hashes here.

Supported by

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