Skip to content

Commit 303ae52

Browse files
committed
Setup improvements.
1 parent a789d13 commit 303ae52

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

docs/exercise1b.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* _Italic_ text
77
* Hyperlinks
88
* Open up the browser source code (open the file `src/browser/browser.py`) -
9-
it's recommended to use Visual Studio Code
9+
it's recommended to use Visual Studio Code. (Specifically, if you're using a Chromebook,
10+
choose File -> Open Folder, click browser-learning once, and click Open. You can then use
11+
the side panel to navigate to `src/browser/browser.py`)
1012
* Find where it handles these tags. See which is missing.
1113

1214
## About reading code
@@ -23,6 +25,10 @@ Clues below! But get reading the code first, then come back to this.
2325

2426
## What's up with...
2527

28+
### The editor
29+
30+
Top tip for reading code: make the window as big as possible.
31+
2632
### The overall structure
2733

2834
The program itself is near the bottom of the file. One of the first things

docs/exercise1c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Then use the browser to visit (exactly):
2525
> You need to run the browser and the server at the same time. The best way to
2626
> do this is to type Control-Z, and then type `bg`, which will run the browser
2727
> in the background. (You can see this by typing `jobs`.) Another way is to
28-
> open another terminal and then run `. venv/bin/activate`.
28+
> open another terminal and then run `cd browser-learning` then `. venv/bin/activate`.
2929
3030
Ensure you can see bold text and hyperlinks.
3131

docs/setup.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ python3 -m pip install -r src/requirements.txt
1818
## Chromebooks
1919

2020
1. Under the main menu in bottom left corner of the screen, open Terminal. Follow the instructions to turn on the Linux environment if necessary. Go with all the standard settings. (Note that this environment may not be available for guest users)
21-
2. Fetch the zip of this course (the instructor will tell you how). Copy it into the Linux environment from Chrome's downloads page.
22-
3. In the terminal, run these commands: (you might need to slightly change the filename in the first command)
21+
2. In the terminal, run these commands:
2322
```
24-
unzip browser-learning.zip
23+
git clone https://github.com/adetaylor/browser-learning.git
2524
cd browser-learning
2625
./install-chromebook-prerequisites.sh
2726
python3 -m venv venv
2827
. venv/bin/activate
29-
python3 -m pip install -r src/requirements.txt
28+
pip3 install -r src/requirements.txt
3029
```
30+
3. Keep the terminal open - you'll need it to run commands. (If you open a new terminal, run `cd browser-learning` and then `. venv/bin/activate`)
31+
4. From the main menu, also open Visual Studio code.
3132

3233
## Other types of machine
3334

install-chromebook-prerequisites.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
curl -o code.deb -L http://go.microsoft.com/fwlink/?LinkID=760868
44
sudo dpkg -i code.deb
55
sudo apt-get update
6+
sudo apt --fix-broken install
67
sudo apt-get install python3.11-venv python3.11-tk pip openssl tcpdump libnss3 libnspr4

0 commit comments

Comments
 (0)