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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file itr_examples-1.0.4.tar.gz
.
File metadata
- Download URL: itr_examples-1.0.4.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1d426d802b3d5884153114f531d9329ff017c52630b617a109386218c48d5e |
|
MD5 | c73dc792bfe65a642796d3a119d1d1cb |
|
BLAKE2b-256 | ace666f826966f24f72bd2f89ae6d18e8df0841441596b4e2da81e998c38e3ff |
File details
Details for the file itr_examples-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: itr_examples-1.0.4-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d47b2f5fbb55eda53384ac0eb8bc7624b1286478b3dad2787d2a27b41b8747 |
|
MD5 | 17e93815951fc753c583dd88126c1423 |
|
BLAKE2b-256 | 8f295c34e69a340f7f2e0e48a73b8c7f18cc3a1a67c708c97887e32c46eec1c9 |