From e9778718b7713695559b41a3fe783c464fc8261c Mon Sep 17 00:00:00 2001 From: Ziad Arafat Date: Mon, 6 Mar 2023 03:57:28 -0700 Subject: [PATCH] added and tested instructions. Needed more deps --- PA003/README.md | 22 +++++++++++++++++++--- PA003/requirements.txt | 3 +++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/PA003/README.md b/PA003/README.md index 774912b..d8cfe68 100644 --- a/PA003/README.md +++ b/PA003/README.md @@ -1,16 +1,32 @@ ## Usage -1. Clean, build, and run + +### Testing the fortran code +1. Clean, build, and run +2. (needs a file matrix.txt containing 12 reals separated by spaces) ```bash make test ``` -2. build all languages +3. build ```bash make ``` -3. Clean binaries +4. Clean binaries ``` make clean ``` + +### Executing The python notebook +1. Install requirements +2. It's recommended to use a virtualenv +3. `pip install -r requirements.txt` +4. Now you can open the notebook in software that supports it. +5. You can run jupyter like this + 1. `jupyter notebook` + 2. alternatively you can use the full lab + 1. `jupyter-lab` +6. now select `compiled_vs_interpreted.ipynb` in the browser +7. Just click "run all" its usually a double play sign. +8. The notebook also builds and executes the fortran code \ No newline at end of file diff --git a/PA003/requirements.txt b/PA003/requirements.txt index d47e24c..7fd9f79 100644 --- a/PA003/requirements.txt +++ b/PA003/requirements.txt @@ -1,2 +1,5 @@ numpy==1.24.2 scipy==1.10.1 +jupyter +jupyterlab +plotly \ No newline at end of file