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
{{ message }}
Repository navigation
Commit 7ea7710
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: v3/docs/developer-overview.md
+24-26Lines changed: 24 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,30 @@ feel free to email philip@pgbovine.net if you have questions.
18
18
And please excuse the sloppy writing; I'm not trying to win any style awards here :)
19
19
20
20
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)
22
45
23
46
When you check out OPT from GitHub, it's configured by default to run on Google App Engine
24
47
(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,
43
66
for development and testing. The main caveat here is that Google App Engine currently runs Python 2.7,
44
67
so you won't be able to test Python 3 locally this way.
45
68
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.
0 commit comments