You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,11 +10,21 @@ using PlutoDevMacros, LinearAlgebra, Random, Statistics
10
10
# ╔═╡ 98c33627-bd5e-4d9e-b3c0-0c215b3abc1c
11
11
PlutoDevMacros.@frompackage@raw_str(joinpath(@__DIR__, "..", "..", "TabularRL.jl")) using TabularRL
12
12
13
+
# ╔═╡ 9a3df08c-7bc5-4508-a48a-44e01fcbbf5c
14
+
begin
15
+
using PlutoUI
16
+
TableOfContents()
17
+
end
18
+
13
19
# ╔═╡ 1504a12d-940e-4c03-9b83-6301b303d64b
14
20
md"""
15
21
# Installation
16
22
17
-
Once you have Julia [installed on your computer](https://julialang.org/install/) you can access the package management system from the REPL by typing `]`. From there you can install `TabularRL.jl` with the command: `add https://github.com/jekyllstein/Reinforcement-Learning-Sutton-Barto-Exercise-Solutions\TabularRL.jl`. If you do not want to add this package to your main environment, then activate a temporary one and add the package there. Below is an example of installing the package into a temporary environment from the REPL
23
+
Both methods require you to [install julia](https://julialang.org/install/) on your computer. Julia should then be accessible in your shell environment with the commmand `julia`. Using this command will open the REPL, an example of which is shown in the first method below.
24
+
25
+
## Manual Setup in the REPL
26
+
27
+
After opening the REPL, you can access the package management system by typing `]`. From there you can install `TabularRL.jl` with the command: `add https://github.com/jekyllstein/Reinforcement-Learning-Sutton-Barto-Exercise-Solutions:TabularRL.jl`. If you do not want to add this package to your main environment, then activate a temporary one and add the package there. Below is an example of installing the package into a temporary environment from the REPL
After the package is installed you can return to normal REPL mode by hitting `backspace` and then enter the command `using TabularRL`
58
+
"""
37
59
38
-
# ╔═╡ ed741cb4-32c1-4287-8368-6835e94d3496
60
+
# ╔═╡ 12d83219-d470-40e9-8bee-a3db0b2bd2a8
39
61
md"""
40
62
```julia
41
-
julia> states = 1:10
63
+
julia> using TabularRL
64
+
```
65
+
"""
66
+
67
+
# ╔═╡ 761318f2-095b-4e3f-a320-061e9f50f166
68
+
md"""
69
+
## Automatic Setup in Notebooks
70
+
71
+
Alternatively, you can clone the entire reinforcement learning exercise repository and have access to every notebook and package contained therein. Check to see if you have `git` installed on your computer with `git --version`. If you receive an error message or do not see a version number then [install git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
72
+
73
+
Clone the repository to your system inside a directory where you have read/write access:
Navigate inside of the repository directory where you should find the following shell scripts: `setup.sh`, `start.sh`, `update.sh`. Note that you may need to make these files executable with
80
+
81
+
```shell
82
+
> chmod +x setup.sh```
83
+
```
84
+
85
+
You can begin by running the start shell script which will automatically run the setup script if this is your first time using the repository:
86
+
87
+
```shell
88
+
> ./start.sh
89
+
```
90
+
91
+
After some precompilation and setup, you should see the following at the bottom of the terminal:
92
+
93
+
```julia
94
+
[ Info: Loading...
95
+
┌ Info:
96
+
└ Go to http://localhost:1234/?secret=3Ah66MkG in your browser to start writing ~ have fun!
97
+
┌ Info:
98
+
│ Press Ctrl+C in this terminal to stop Pluto
42
99
```
100
+
101
+
However, note that the secret and port number may differ on your system. The URL that contains `localhost` is what you should copy into your web browser to see the Pluto welcome screen.
102
+
"""
103
+
104
+
# ╔═╡ 1519dfbc-e593-4f1e-9b09-9af8157b04b8
105
+
md"""
106
+

107
+
"""
108
+
109
+
# ╔═╡ 418687b7-73f4-476d-8eeb-9791830f44e3
110
+
md"""
111
+
If you click in the text box under `Open a notebook` a navigation menu will appear that shows the directory structure. If you open any of the `Chapter...` folders, you will see notebook files which can be opened and used interactively. For our purposes, however, we will open a template notebook which loads all of the required tools. This notebook is contained at `Examples/template.jl` and can be opened from the text box (see below).
112
+
"""
113
+
114
+
# ╔═╡ 20ebb844-bde2-41fd-a512-d62991e2f6d0
115
+
md"""
116
+
By default, the notebook will open in a preview mode (see below). Click `Run notebook code` at the top to run the notebook and have access to all the tools. From there you can add cells to the notebook and enter commands in them just like you would in the REPL. The code examples which follow can work either in the REPL or the notebook.
0 commit comments