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 2ceede1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: v3/docs/project-ideas.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,13 +83,11 @@ I recently added a feature to Online Python Tutor (OPT) that enables user progra
83
83
84
84
For the file I/O example, I can imagine creating a special File class that implements "file-like" stream I/O methods. Then the user program might look like:
85
85
86
-
---
87
-
import VisualFile
88
-
f = VisualFile(<stringcontentsofthefile>)
86
+
import VisualFile
87
+
f = VisualFile(<string contents of the file>)
88
+
for line in open(f):
89
+
<parse line>
89
90
90
-
for line in open(f):
91
-
<parseline>
92
-
---
93
91
94
92
The class definition of VisualFile includes the proper HTML-generation code to render a pretty HTML representation of the file's contents. And when methods iterate over the file, it can render an HTML representation with certain lines or characters highlighted to represent, say, the current file pointer position, etc.
95
93
}
@@ -190,7 +188,7 @@ We also talked about visualizing orders of growth of code, such as loops, nested
190
188
191
189
## Backend
192
190
193
-
### Support multiple concurrent viewers
191
+
### Shared visualization sessions
194
192
195
193
My main high-level vision for where to take the shared editing is the following:
196
194
@@ -201,17 +199,21 @@ My main high-level vision for where to take the shared editing is the following:
201
199
202
200
The basic idea here is that students can follow along with an instructor but then "detach" at anytime to try out their own variations and experiments without interfering with other people's sessions.
203
201
204
-
Here's another snippet on this idea:
202
+
A related point/question is: what happens if two people try to simultaneously edit? i assume that they clobber each other's changes, right? in that case, it might be good to designate only ONE person who can edit, and everyone else just watches. or else a mischievous student can just delete everyone's code. of course, you can also have another "free-for-all" mode where everyone can edit.
203
+
205
204
206
-
Collaborative visualizations: Adding real-time concurrent editing to these visualizations enables students to work together and tutor one another while physically separated. A shared workspace can also be useful during both physical and virtual lectures: As the instructor is lecturing using code visualizations, students can follow along by viewing those same running examples on their laptops. At any point when curious or confused, students can instantly diverge from the live example and try out their own variants
205
+
Another take on this idea:
206
+
Adding real-time concurrent editing to these visualizations enables students to work together and tutor
207
+
one another while physically separated. A shared workspace can also be useful during both physical and
208
+
virtual lectures: As the instructor is lecturing using code visualizations, students can follow along by
209
+
viewing those same running examples on their laptops. At any point when curious or confused, students can
210
+
instantly diverge from the live example and try out their own variants
207
211
on-the-fly in private; they can then sync back to the "live feed" at any time. Students can also text
208
212
chat with one another about the lecture, all within the context of the live lecture materials. If students
209
213
opt-in to allowing the instructor to access such interaction data, then that could "close the loop" and
210
214
help the instructor improve future lectures. For instance, if 80% of students are silently diverging from
211
215
the live example at a certain point in lecture, then perhaps that part requires further clarification.
212
216
213
-
A related point/question is: what happens if two people try to simultaneously edit? i assume that they clobber each other's changes, right? in that case, it might be good to designate only ONE person who can edit, and everyone else just watches. or else a mischievous student can just delete everyone's code. of course, you can also have another "free-for-all" mode where everyone can edit.
214
-
215
217
216
218
### Visualizing different programming languages (especially JavaScript!)
0 commit comments