| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c7fff61 commit 5f72783
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,33 @@ When complete, this project will have Python implementations for all the pseudoc | |||
| 22 | 22 | ## Python 3.4 and up | |
| 23 | 23 | ||
| 24 | 24 | This code requires Python 3.4 or later, and does not run in Python 2. You can [install Python](https://www.python.org/downloads) or use a browser-based Python interpreter such as [repl.it](https://repl.it/languages/python3). | |
| 25 | - You can run the code in an IDE, or from the command line with `python -i filename.py` where the `-i` option puts you in an interactive loop where you can run Python functions. See [jupyter.org](http://jupyter.org/) for instructions on setting up your own Jupyter notebook environment, or run the notebooks online with [try.jupiter.org](https://try.jupyter.org/). | ||
| 25 | + You can run the code in an IDE, or from the command line with `python -i filename.py` where the `-i` option puts you in an interactive loop where you can run Python functions. See [jupyter.org](http://jupyter.org/) for instructions on setting up your own Jupyter notebook environment, or run the notebooks online with [try.jupiter.org](https://try.jupyter.org/). | ||
| 26 | + | ||
| 27 | + | ||
| 28 | + ## Installation Guide | ||
| 29 | + | ||
| 30 | + To download the repository: | ||
| 31 | + | ||
| 32 | + `git clone https://github.com/aimacode/aima-python.git` | ||
| 33 | + | ||
| 34 | + You also need to fetch the datasets from the [`aima-data`](https://github.com/aimacode/aima-data) repository: | ||
| 35 | + | ||
| 36 | + ``` | ||
| 37 | + cd aima-python | ||
| 38 | + git submodule init | ||
| 39 | + git submodule update | ||
| 40 | + ``` | ||
| 41 | + | ||
| 42 | + Wait for the datasets to download, it may take a while. Once they are downloaded, you need to install `pytest`, so that you can run the test suite: | ||
| 43 | + | ||
| 44 | + `pip install pytest` | ||
| 45 | + | ||
| 46 | + Then to run the tests: | ||
| 47 | + | ||
| 48 | + `py.test` | ||
| 49 | + | ||
| 50 | + And you are good to go! | ||
| 51 | + | ||
| 26 | 52 | ||
| 27 | 53 | # Index of Algorithms | |
| 28 | 54 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments