Thank you for taking a look at Stonktastic. Please start by taking a look at the documentation
Project Overview: We used Juputer Notebooks to record most of the project overview located here
- Data Sources Used
- Database Structure
- Development Practices
- Flask
- Installation Instructions
- Python Libraries
- Stock Technical Indicators
- Structure and Formatting Guide
Machine Learning Reports
Source : https://docs.anaconda.com/anaconda/install/
Description :
Conda provides an enviroment to develop projects in without the worry of having to manage multiple versions of libraries and installs. For instance, at the time of this projects writing, Tensorflow could not handle python 3.8.1 (current version) and instead could only work with python 3.6. Managing a web of those dependencies between projects can be a huge hassle.
Conda is thus used to keep each project and its dependencies isolated from one another and provide a large enviroment to develop in.
To install conda, an install program needs to be run on your computer. Use the link above to find the latest copy for each operating system.
The following command creates a new conda enviroment. Change the name of [myenv] to whatever you want your installation to be called. We used Stonk for our conda install.
- conda create -n [myenv] python=3.6
This will activate conda in your enviroment. Once active you will need to deactivate it if you want to turn it off.
Activating Conda
- conda activate [myenv]
Deactivating Conda
- conda deactivate [myenv]
By using pip one can install all of the dependencies for the project at once and with the correct version.
-
First, navigate to the correct folder (/Stonktastic/)
-
Ensure that you are in a conda enviroment with the below code:
- conda activate [conda enviroment name]
- Use the below code to install all of the dependencies in a batch. Breakdown for each major library used is referenced in the Documentation file Python Libraries
- pip install -r requirements.txt)
In order to have greater accessability to the project from outside the direct folder, we will install the project as a Local Editable Package. This also helps with the later push to have the finished project downloadable and installable as a package.
The Jupyter notebooks also have easier access with a local install as they only need to import the specific functions in the library from the enviroment rather than using path references.
You can install a project as a local editable install with a setup.py file and a setup.cfg file.
- pip install -e .
Two files will need to be added to your project in order to preform the local install: setup.py and setup.cfg. Setup.py requires only two lines of code (refer to projects setup.py for reference) and uses the setup.cfg for the configuration of the local install, namely where it is located and other metadata.
Navigate to Stonktastic/src/ and open the main.py file. Listed there are options for running the project. For the first run, its suggested to run the Full option as it will preform all tasks nessessary for the project in order.