Skip to content

Commit 97d7a3a

Browse files
committed
added version in setup section
1 parent 7c50f70 commit 97d7a3a

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed

books/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ title: "Surrogate Methods"
22
execute:
33
execute_notebooks: "off"
44
author: "Leifur Leifsson (leifur[at]purdue.edu)"
5-
copyright: "2024"
5+
copyright: "2025"
66
repository:
77
url: "https://github.com/ComputationalDesignLab/surrogate-methods"
88
path_to_book: "books"

books/setup.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Computing environment setup
22

33
The goal of this section is to create a computing environment on your computer to run and use the code given in the jupyter-book.
4-
Follow the steps below to setup anaconda, create an environment, and install some initial
4+
Follow below steps for setting up anaconda, creating an environment, and installing some initial
55
packages in the new environment. If you already have Anaconda or know any other method
66
which suits your needs in a better manner, then you are free to use that. **The end goal is to have
77
a working computing environment to use along with the jupyter-book**.
@@ -13,7 +13,7 @@ steps will be very similar but there might be more usage of terminal commands.
1313

1414
You can skip this step if you already have Anaconda (or miniconda) installed.
1515

16-
1. Download anaconda from https://www.anaconda.com/.
16+
1. Download anaconda from https://www.anaconda.com/download/success.
1717

1818
2. Open the installer and follow the instructions.
1919

@@ -33,7 +33,7 @@ going through these tutorials if you choose to use Navigator to setup the enviro
3333
Another alternative for creating a computing environment is to use miniconda which is a minimal
3434
installation of Anaconda containing only conda, Python and a few other useful packages such as
3535
pip. Instructions for installation of miniconda will not be covered in this guide and can be found [here](https://docs.conda.io/projects/miniconda/en/latest/). If you want to know more, there is also a
36-
comparison between Anaconda and miniconda given [here](https://docs.conda.io/projects/conda/en/stable/user-guide/install/download.html#anaconda-or-miniconda).
36+
comparison between Anaconda and miniconda given [here](https://docs.anaconda.com/distro-or-miniconda/).
3737
In general, it is recommended to use Anaconda if you are new to conda or Python. If
3838
you have installed miniconda, it will also come with an Anaconda Prompt and a procedure like
3939
the one outlined in the below steps can be used to set up the computing environment.
@@ -48,7 +48,7 @@ the one outlined in the below steps can be used to set up the computing environm
4848

4949
![Entry screen](images/entry.png)
5050

51-
2. Type in ``conda list`` and press enter to run this command. You will see the list of packages
51+
2. Type ``conda list`` and press enter to run this command. You will see the list of packages
5252
installed in the base environment.
5353

5454
![Conda list](images/conda_list.png)
@@ -65,7 +65,7 @@ the one outlined in the below steps can be used to set up the computing environm
6565
3. To create a new env, run the command: ``conda create -n ENVNAME python=3.9``. Replace
6666
ENVNAME with whatever name you want to give to the new environment. The
6767
``python=3.9`` after the environment name tells conda what version of python to install.
68-
We will be using python version 3.9 for this class.
68+
We will be using python version 3.9 in this book.
6969

7070
![Conda create](images/conda_create.png)
7171

@@ -74,13 +74,13 @@ the one outlined in the below steps can be used to set up the computing environm
7474

7575
![Conda create success](images/conda_create_success.png)
7676

77-
You can run conda env list again and see that your newly created env is there. For the
77+
You can run conda env list again and see that your newly created environment is there. For the
7878
example shown below, the name of the environment was set to surrogate_methods.
7979

8080
![Conda create env list](images/conda_create_env_list.png)
8181

8282
4. To activate the newly created env, run ``conda activate ENVNAME``. Replace ENVNAME with
83-
your chosen environment name. You will see that the ``(base)`` before the command
83+
your environment name. You will see that the ``(base)`` before the command
8484
prompt will change to the ``ENVNAME``.
8585

8686
![Conda activate](images/conda_activate.png)
@@ -91,8 +91,8 @@ the one outlined in the below steps can be used to set up the computing environm
9191

9292
## Step 3: Installing packages
9393

94-
In this step, you will install some basic packages which you will need during the initial part of the
95-
class. You will install many other packages as the semester progresses.
94+
In this step, you will install some basic packages which you will need during the first few lectures.
95+
You will install many other packages as the semester progresses.
9696

9797
1. Open Anaconda Prompt. Again, make sure that you use the run as administrator option
9898
when opening Anaconda Prompt. Activate the environment which you created in the last
@@ -108,23 +108,20 @@ class. You will install many other packages as the semester progresses.
108108

109109
> **_NOTE:_** It is okay if your list is not exactly same as above.
110110
111-
2. Install Numpy (if it is not pre-installed) by running: ``pip install numpy``. If you want to install
112-
a specific version of a package, the version must be mentioned while running the pip command.
113-
This can be done by running ``pip install numpy==1.23.5``. There is no specific version for numpy in this class.
114-
After installing any package, always run ``pip list`` and see if the package is listed there or not, also check the
115-
version if you explicitly mentioned version while installing.
111+
2. Install Numpy by running: ``pip install numpy==1.23.5``. The number at the end indicates specific
112+
version of the package which we want to install. After installing any package, always run ``pip list``
113+
and see if the package is listed there or not, also ensure that the version of the package is
114+
same as mentioned in the install command.
116115

117-
3. Install SciPy by running: ``pip install scipy``.
116+
3. Install SciPy by running: ``pip install scipy==1.13.1``.
118117

119-
4. Install Matplotlib by running: ``pip install matplotlib``.
118+
4. Install Matplotlib by running: ``pip install matplotlib==3.9.1``.
120119

121-
5. Install Jupyter Notebook by running: ``pip install notebook``.
120+
5. Install Jupyter Notebook by running: ``pip install notebook==7.2.1``.
122121

123122
> **_NOTE:_** This will install a lot of dependencies that are required for Jupyter Notebook.
124123
125124
Jupyter Notebook is a computing platform that will be used extensively in this class.
126-
Now, your computing environment should be ready. In future, whenever you are asked to install
127-
a new package, you should install it using pip within this environment only.
128125

129126
Now, your computing environment should be ready. In future, whenever you are asked to install
130127
a new package, you should install it using pip within this environment only.

0 commit comments

Comments
 (0)