Skip to content

Commit f0ff8e5

Browse files
committed
test
1 parent 41766b5 commit f0ff8e5

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

v3/opt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def opt_pre_run_code_hook(self):
136136
filtered_ns[k] = v
137137

138138
last_cmd = self.history_manager.input_hist_parsed[-1]
139-
print 'last_cmd:', last_cmd
139+
#print 'last_cmd:', last_cmd
140140
self.meta.opt_history.run_str(last_cmd, filtered_ns)
141-
#urllib2.urlopen("http://localhost:8888/post", last_cmd)
141+
urllib2.urlopen("http://localhost:8888/post", last_cmd)
142142

143143

144144
def load_ipython_extension(ipython):
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
4+
<head>
5+
<title>Online Python Tutor - IPython shell</title>
6+
7+
<!-- dependencies for pytutor.js -->
8+
<script type="text/javascript" src="{{ static_url("d3.v2.min.js") }}"></script>
9+
<script type="text/javascript" src="{{ static_url("jquery-1.8.2.min.js") }}"></script>
10+
<script type="text/javascript" src="{{ static_url("jquery.ba-bbq.min.js") }}"></script> <!-- for handling back button and URL hashes -->
11+
<script type="text/javascript" src="{{ static_url("jquery.jsPlumb-1.3.10-all-min.js") }} "></script> <!-- for rendering SVG connectors
12+
DO NOT UPGRADE ABOVE 1.3.10 OR ELSE BREAKAGE WILL OCCUR -->
13+
<script type="text/javascript" src="{{ static_url("jquery-ui-1.8.24.custom.min.js") }}"></script> <!-- for sliders and other UI elements -->
14+
<link type="text/css" href="{{ static_url("jquery-ui-1.8.24.custom.css") }}" rel="stylesheet" />
15+
16+
17+
<!-- Python Tutor frontend code and styles -->
18+
<script type="text/javascript" src="{{ static_url("pytutor.js") }}"></script>
19+
<link rel="stylesheet" href="{{ static_url("pytutor.css") }}"/>
20+
21+
<script type="text/javascript" src="{{ static_url("opt-ipy.js") }}"></script>
22+
23+
</head>
24+
25+
<body>
26+
27+
<div id="vizDiv"></div>
28+
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)