|
| 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 | +<!-- |
| 5 | +
|
| 6 | +Online Python Tutor |
| 7 | +https://github.com/pgbovine/OnlinePythonTutor/ |
| 8 | +
|
| 9 | +Copyright (C) 2010-2013 Philip J. Guo (philip@pgbovine.net) |
| 10 | +
|
| 11 | +Permission is hereby granted, free of charge, to any person obtaining a |
| 12 | +copy of this software and associated documentation files (the |
| 13 | +"Software"), to deal in the Software without restriction, including |
| 14 | +without limitation the rights to use, copy, modify, merge, publish, |
| 15 | +distribute, sublicense, and/or sell copies of the Software, and to |
| 16 | +permit persons to whom the Software is furnished to do so, subject to |
| 17 | +the following conditions: |
| 18 | +
|
| 19 | +The above copyright notice and this permission notice shall be included |
| 20 | +in all copies or substantial portions of the Software. |
| 21 | +
|
| 22 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 23 | +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 24 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 25 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 26 | +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 27 | +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 28 | +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 29 | +
|
| 30 | + --> |
| 31 | + |
| 32 | +<head> |
| 33 | + <title>Online Python Tutor - Visualize program execution</title> |
| 34 | + |
| 35 | + <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/> |
| 36 | + |
| 37 | +<!-- requirements for pytutor.js --> |
| 38 | +<script type="text/javascript" src="js/d3.v2.min.js"></script> |
| 39 | +<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script> |
| 40 | +<script type="text/javascript" src="js/jquery.ba-bbq.min.js"></script> <!-- for handling back button and URL hashes --> |
| 41 | +<script type="text/javascript" src="js/jquery.jsPlumb-1.3.10-all-min.js "></script> <!-- for rendering SVG connectors |
| 42 | + DO NOT UPGRADE ABOVE 1.3.10 OR ELSE BREAKAGE WILL OCCUR --> |
| 43 | +<script type="text/javascript" src="js/jquery-ui-1.8.24.custom.min.js"></script> <!-- for sliders and other UI elements --> |
| 44 | +<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.24.custom.css" rel="stylesheet" /> |
| 45 | + |
| 46 | +<!-- for annotation bubbles --> |
| 47 | +<script type="text/javascript" src="js/jquery.qtip.min.js"></script> |
| 48 | +<link type="text/css" href="css/jquery.qtip.css" rel="stylesheet" /> |
| 49 | + |
| 50 | +<script type="text/javascript" src="js/pytutor.js"></script> |
| 51 | +<link rel="stylesheet" href="css/pytutor.css"/> |
| 52 | +<link rel="stylesheet" href="css/pytutor.cs61a.css"/> <!-- include AFTER pytutor.css --> |
| 53 | + |
| 54 | + |
| 55 | +<!-- requirements for opt-frontend.js --> |
| 56 | + |
| 57 | +<!-- codemirror.net online code editor --> |
| 58 | +<script type="text/javascript" src="js/codemirror/codemirror.js"></script> |
| 59 | +<link type="text/css" href="css/codemirror.css" rel="stylesheet" /> |
| 60 | +<script type="text/javascript" src="js/codemirror/python.js"></script> |
| 61 | + |
| 62 | +<script type="text/javascript" src="js/opt-frontend-cs61a.js"></script> |
| 63 | +<link rel="stylesheet" href="css/opt-frontend.css"/> |
| 64 | + |
| 65 | +</head> |
| 66 | + |
| 67 | +<body> |
| 68 | + |
| 69 | +<div id="pyInputPane"> |
| 70 | + |
| 71 | +Write your Python code here: |
| 72 | +<br/> |
| 73 | + |
| 74 | +<div id="codeInputPane"></div> <!-- populate with a CodeMirror instance --> |
| 75 | + |
| 76 | +<p style="margin-top: 10px; line-height: 200%;"> |
| 77 | +Execute code using |
| 78 | + <select id="pythonVersionSelector"> |
| 79 | + <option value="3">Python 3.3</option> |
| 80 | + </select> |
| 81 | +and |
| 82 | + <select id="cumulativeModeSelector"> |
| 83 | + <option value="true">display frames of exited functions.</option> |
| 84 | + <option value="false">don't display exited functions.</option> |
| 85 | + </select> |
| 86 | +</p> |
| 87 | + |
| 88 | +<p> |
| 89 | +<button id="executeBtn" class="bigBtn" type="button">Visualize Execution</button> |
| 90 | +</p> |
| 91 | + |
| 92 | +</div> |
| 93 | + |
| 94 | + |
| 95 | +<div id="pyOutputPane"> |
| 96 | +</div> |
| 97 | + |
| 98 | +<div id="footer"> |
| 99 | + |
| 100 | +<p> |
| 101 | + <button id="genUrlBtn" class="smallBtn" type="button">Generate URL</button> <input type="text" id="urlOutput" size="70"/> |
| 102 | +</p> |
| 103 | + |
| 104 | +<p>To share this visualization, click the 'Generate URL' button above |
| 105 | +and share that URL. To report a bug, paste the URL along with a brief |
| 106 | +error description in an email addressed to philip@pgbovine.net</p> |
| 107 | + |
| 108 | +This version of <a href="http://pythontutor.com/">Online Python Tutor</a> supports |
| 109 | +<a href="http://www.python.org/doc/3.3.0/">Python 3.3</a> with limited module |
| 110 | +imports and no file I/O. |
| 111 | +The following modules may be imported: |
| 112 | +bisect, |
| 113 | +collections, |
| 114 | +datetime, |
| 115 | +functools, |
| 116 | +heapq, |
| 117 | +itertools, |
| 118 | +json, |
| 119 | +math, |
| 120 | +operator, |
| 121 | +random, |
| 122 | +re, |
| 123 | +string |
| 124 | +</p> |
| 125 | + |
| 126 | +<p>Have a question? Maybe the <a |
| 127 | +href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/user-FAQ.md">FAQ</a> |
| 128 | +or other <a |
| 129 | +href="https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/docs/">documentation</a> |
| 130 | +can help. Or check out its code at <a |
| 131 | +href="https://github.com/pgbovine/OnlinePythonTutor/">GitHub</a>.</p> |
| 132 | + |
| 133 | +<p>Join the <a |
| 134 | +href="https://groups.google.com/forum/#!forum/pythontutor-users">pythontutor-users</a> |
| 135 | +mailing list to participate in user discussions and <a |
| 136 | +href="https://groups.google.com/forum/#!forum/pythontutor-announce">pythontutor-announce</a> |
| 137 | +to receive occasional announcements. |
| 138 | +(Your name and email address will be kept private; only the list owner can see them.)</p> |
| 139 | + |
| 140 | +<p style="margin-top: 8px;"> |
| 141 | +Copyright © 2010-2013 <a href="http://www.pgbovine.net/">Philip Guo</a>. All rights reserved. |
| 142 | +</p> |
| 143 | + |
| 144 | +</div> |
| 145 | + |
| 146 | +</body> |
| 147 | +</html> |
| 148 | + |
0 commit comments