Skip to content

Commit 7ea7710

Browse files
committed
Update developer-overview.md
1 parent 40d9ae1 commit 7ea7710

1 file changed

Lines changed: 24 additions & 26 deletions

File tree

‎v3/docs/developer-overview.md‎

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,30 @@ feel free to email philip@pgbovine.net if you have questions.
1818
And please excuse the sloppy writing; I'm not trying to win any style awards here :)
1919

2020

21-
## Getting Started: Running OPT locally on your machine
21+
## Getting Started: Running OPT locally on your machine using Bottle:
22+
23+
First install the [bottle](http://bottlepy.org/) micro web framework:
24+
25+
easy_install pip
26+
pip install bottle
27+
28+
And then run:
29+
30+
cd OnlinePythonTutor/v3/
31+
python bottle_server.py
32+
33+
(use `python3` if you want to test the Python 3 backend.)
34+
35+
If all goes well, when you visit this URL, you should see the Python Tutor visualizer:
36+
37+
http://localhost:8080/visualize.html
38+
39+
Note that you can run bottle with both Python 2 and 3.
40+
41+
However, **only** run this app locally for testing, not in production, since security checks are disabled.
42+
43+
44+
## Alternative: Using Google App Engine (deprecated)
2245

2346
When you check out OPT from GitHub, it's configured by default to run on Google App Engine
2447
(but it can also run fine on a CGI-enabled webserver such as Apache).
@@ -43,31 +66,6 @@ if you're eventually going to deploy on something other than Google App Engine,
4366
for development and testing. The main caveat here is that Google App Engine currently runs Python 2.7,
4467
so you won't be able to test Python 3 locally this way.
4568

46-
Here is a [blog post by a Hacker School student](http://theworldsoldestintern.wordpress.com/2012/10/15/installing-online-python-tutor-on-your-laptop-localhost8080/)
47-
who set up OPT on his Ubuntu laptop. (btw [Hacker School](http://www.hackerschool.com/) is worth checking out!)
48-
49-
50-
## Alternative setup: Running OPT locally using bottle
51-
52-
Google App Engine works only with Python 2, not Python 3. So if you want to run with Python 3 as well,
53-
first install the [bottle](http://bottlepy.org/) micro web framework:
54-
55-
easy_install pip
56-
pip install bottle
57-
58-
And then run:
59-
60-
cd OnlinePythonTutor/v3/
61-
python bottle_server.py
62-
63-
If all goes well, when you visit this URL, you should see the Python Tutor visualizer:
64-
65-
http://localhost:8080/visualize.html
66-
67-
Note that you can run bottle with both Python 2 and 3.
68-
69-
However, **only** run this app locally for testing, not in production, since security checks are disabled.
70-
7169

7270
## Overall system architecture
7371

0 commit comments

Comments
 (0)