- First, make sure that you have the source code by downloading it and unzipping it, or by cloning it from the repository. Then, change directory to the source code root.
cd notaetools- Second, create a new environment for installing dependencies and required packages.
conda env create -f environment.yml- Third, activate the environment. For example, if the name of the environment from the previous step is
notaetoolsthen proceed as follows:
conda activate notaetoolsIn order to verify that it's been activated look at the command line. On the left there should be the name of the environment in parantheses.
- Update the environement from the environment.yml file like this:
conda env update --file environment.yml --prune- Finally, run the server for serving the computer vision model through the REST API
python api.pyUse the terminal or an Anaconda Prompt for the following steps:
Create the environment from the environment.yml file:
conda env create -f environment.ymlThe first line of the yml file sets the new environment's name. For details see Creating an environment file manually.
Activate the new environment: conda activate notaetools
Verify that the new environment was installed correctly:
conda env listYou can also use conda info --envs.
First, pull the latest commits from remote:
git pullNext, update your existing environment, notaetools, via the environment.yml file:
conda env update --file environment.yml --pruneIf you add/remove/upgrade/downgrade any dependencies, then you need to reflect the changes to the envrionment.yml file.
conda env export > environment.ymlMake sure that the conda environment is active. Then, use your shell and run the pdf_viewer.py script:
python pdf_viewer.pyThe prompt outputs something like this:
Dash is running on http://127.0.0.1:8085/
You should then open a web page and go to 127.0.0.1:8085.