@@ -85,7 +85,7 @@ <h1><span id="learnHeading">LEARN</span> <span class="smallH1">programming by vi
8585browser and visualize what the computer is doing step-by-step as it
8686executes the program.</ p >
8787
88- < p > As of Dec 2013, over < b > 500,000 people</ b > in over < b > 165
88+ < p > Over < b > 500,000 people</ b > in over < b > 165
8989countries</ b > have used Online Python Tutor to understand and debug
9090their programs, often as a supplement to textbooks, lecture notes, and
9191online programming tutorials. Over 6,000 pieces of Python code are
@@ -115,6 +115,7 @@ <h1><span id="learnHeading">LEARN</span> <span class="smallH1">programming by vi
115115
116116< div id ="demoViz "> </ div >
117117
118+ <!--
118119<p>
119120
120121Watch a <a href="http://www.youtube.com/watch?v=y3sVN7uaxDM">1-minute
@@ -124,6 +125,7 @@ <h1><span id="learnHeading">LEARN</span> <span class="smallH1">programming by vi
124125mode</a>
125126
126127</p>
128+ -->
127129
128130< p >
129131< b > < a
@@ -148,38 +150,26 @@ <h1><span id="learnHeading">LEARN</span> <span class="smallH1">programming by vi
148150
149151< div class ="activityPane " id ="embedPane ">
150152
151- < h1 > < span id ="embedHeading "> EMBED</ span > < span class ="smallH1 "> visualizations in digital textbooks</ span > </ h1 >
152-
153- < p > Using a single line of JavaScript code, you can < a
154- href ="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/embedding-HOWTO.md "> embed</ a > an Online Python Tutor
155- visualization within your Web page (as shown in the “Learn”
156- box above). The screenshot below shows a few of these visualizations
157- embedded within the online textbook for the introductory CS course at UC
158- Berkeley (< a href ="http://www.composingprograms.com/ "> CS61A</ a > ):
159-
160- </ p >
161-
162- < img src ="opt-v3-cs61a-embed.png " style ="border: 1px solid #aaa; "/>
163- < p >
164-
165- These visualizations have also been embedded within two other Web-based
166- Python textbook projects: < a
167- href ="http://interactivepython.org/courselib/static/thinkcspy/index.html "> How
168- to Think Like a Computer Scientist: Interactive Edition</ a > and < a
169- href ="http://cscircles.cemc.uwaterloo.ca/ "> Computer Science Circles</ a > .
170- These textbooks collectively attract around 16,000 unique viewers per
171- month and are being used in at least 25 universities around the world.
153+ < h1 > < span id ="embedHeading "> SHARE</ span > < span class ="smallH1 "> live visualization sessions</ span > </ h1 >
172154
155+ < p > Click on the "Start a shared session" button to allow an instructor or friend
156+ to join your live visualization session. You can chat about your code and navigate
157+ the visualization together to get real-time tutoring. Watch this one-minute
158+ < a href ="http://youtu.be/Z2TIjNArOK4 "> video demo</ a > :
173159</ p >
174160
175- < p >
161+ < iframe width =" 480 " height =" 360 " src =" //www.youtube.com/embed/Z2TIjNArOK4 " frameborder =" 0 " allowfullscreen > </ iframe >
176162
177- In addition, instructors have embedded Online Python Tutor
178- visualizations into LMS platforms such as < a
179- href ="https://moodle.org/ "> Moodle</ a > and < a
180- href ="http://code.edx.org/ "> edX</ a > .
163+ < p > In addition, you can click the “Generate
164+ URL” button (at the bottom of < a href ="visualize.html "> this
165+ page</ a > ) and paste that URL link in an email, social networking
166+ post, or forum question. When recipients click on that link, they will
167+ see the visualization you've created.</ p >
181168
182- </ p >
169+ < p > For example, clicking < a
170+ href ="visualize.html#code=%23+find+primes+using+a+for-else+construct%0Afor+n+in+range(2,+10)%3A%0A++++x_range+%3D+range(2,+n)%0A++++for+x+in+x_range%3A%0A++++++++if+n+%25+x+%3D%3D+0%3A%0A++++++++++++break%0A++++else%3A%0A++++++++%23+loop+fell+through+without+finding+a+factor%0A++++++++print(n)&mode=display&cumulative=false&py=2&curInstr=43 "> this
171+ link</ a > brings you directly to step 44 of 57 in a program that finds
172+ prime numbers using the Python < tt > for-else</ tt > construct.</ p >
183173
184174</ div >
185175
@@ -188,18 +178,18 @@ <h1><span id="embedHeading">EMBED</span> <span class="smallH1">visualizations in
188178
189179< div class ="activityPane " id ="sharePane ">
190180
191- < h1 > < span id ="shareHeading "> SHARE </ span > < span class ="smallH1 "> visualizations online </ span > </ h1 >
181+ < h1 > < span id ="shareHeading "> EMBED </ span > < span class ="smallH1 "> in any Web page </ span > </ h1 >
192182
193- < p > To share your current visualization, click the “Generate
194- URL” button (at the bottom of < a href ="visualize.html "> this
195- page</ a > ) and paste that URL link in an email, social networking
196- post, or forum question. When recipients click on that link, they will
197- see your exact visualization.</ p >
183+ < p > Using a single line of JavaScript code, you can < a
184+ href ="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/embedding-HOWTO.md "> embed</ a > an Online Python Tutor
185+ visualization within any Web page (as shown in the “Learn”
186+ box above). The screenshot below shows visualizations
187+ embedded within the online textbook for the introductory CS course at UC
188+ Berkeley (< a href ="http://www.composingprograms.com/ "> CS61A</ a > ):
198189
199- < p > For example, clicking < a
200- href ="visualize.html#code=%23+find+primes+using+a+for-else+construct%0Afor+n+in+range(2,+10)%3A%0A++++x_range+%3D+range(2,+n)%0A++++for+x+in+x_range%3A%0A++++++++if+n+%25+x+%3D%3D+0%3A%0A++++++++++++break%0A++++else%3A%0A++++++++%23+loop+fell+through+without+finding+a+factor%0A++++++++print(n)&mode=display&cumulative=false&py=2&curInstr=43 "> this
201- link</ a > brings you directly to step 44 of 57 in a program that finds
202- prime numbers using the Python < tt > for-else</ tt > construct.</ p >
190+ </ p >
191+
192+ < img src ="opt-v3-cs61a-embed-small.png " style ="width: 275px; border: 1px solid #aaa; margin-bottom: 10px; "/>
203193
204194</ div >
205195
@@ -210,9 +200,7 @@ <h1><span id="shareHeading">SHARE</span> <span class="smallH1">visualizations on
210200More Details:
211201< ul >
212202
213- < li /> Online Python Tutor runs Python 2.7 and 3.3, hosted on either
214- a CGI-capable Web server or on < a
215- href ="https://developers.google.com/appengine/ "> Google App Engine</ a >
203+ < li /> Online Python Tutor runs Python 2.7 and 3.3, hosted on any CGI-capable Web server.
216204
217205 < li /> Main technologies: Python with < tt > < a
218206 href ="http://docs.python.org/library/bdb.html "> bdb</ a > </ tt > for the
0 commit comments