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 8662fdb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: v3/docs/project-ideas.md
+39-4Lines changed: 39 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,15 +57,50 @@ Here are some examples of input widgets:
57
57
58
58
# Custom data structure visualizations
59
59
60
-
Right now Online Python Tutor can render only basic Python data structures. While this is sufficient for teaching introductory CS courses, intermediate and advanced CS students must learn algorithms involving more sophisticated data structures such as binary trees and graphs. The goal of this project is to create a set of effective custom renderers for data structures such as trees, graphs, numerical matrices, and even simple 2D graphical worlds (e.g., for Pac-Man or Conway’s Game of Life). These renderers will make Online Python Tutor useful in a far larger variety of CS courses and online textbooks.
60
+
Right now Online Python Tutor can render only basic Python data structures.
61
61
62
+
While this is sufficient for teaching introductory CS courses, intermediate and advanced CS students must learn
63
+
algorithms involving more sophisticated data structures such as binary trees and graphs.
64
+
The goal of this project is to create a set of effective custom renderers for data structures
65
+
such as:
62
66
63
-
## Custom Rendering API and Lightweight Plug-In System (medium)
67
+
- trees,
68
+
- graphs,
69
+
- numerical matrices,
70
+
- and even simple 2D graphical worlds (e.g., for Pac-Man or Conway’s Game of Life).
71
+
72
+
These renderers will make Online Python Tutor useful in a far larger variety of CS courses and online textbooks
73
+
beyond CS0/CS1 sorts of intro classes.
64
74
65
-
Right now Online Python Tutor renders Python data structures in a single, fixed way. However, different instructors have different preferences for how they want certain objects to render on-screen (and argue passionately for their specific tastes). There is currently no way for them to specify these custom rendering schemes without mucking around with intricate JavaScript code in the frontend. The goal of this project is to create a clean API and plugin architecture so that JavaScript-savvy instructors can easily create custom renderers.
75
+
One ultimate goal is to make OPT capable of visualizing classic AI and algorithm textbook algorithms
76
+
that otherwise would need to be tediously built as one-off special-case visualizations.
66
77
78
+
There are (at least) two main ways to implement this feature:
67
79
68
-
## Offline mode for use as a production debugger (medium)
80
+
- Add custom data types to the trace and have the frontend render them specially, using JS visualization libraries such as d3.
81
+
- Take advantage of OPT's (still undocumented) ability to print arbitrary HTML/CSS/JS to the canvas (just like how it can print stdout output to a text box), so create custom data structure classes with printHTML() methods that print their representation in HTML format.
82
+
83
+
The dream is to be able to write Python modules for each custom data type.
84
+
85
+
86
+
## Custom Rendering API and Lightweight Plug-In System
87
+
88
+
Right now Online Python Tutor renders Python data structures in a single, fixed way.
89
+
However, different instructors have different preferences for how they want certain objects to render
90
+
on-screen (and argue passionately for their specific tastes).
91
+
There is currently no way for them to specify these custom rendering schemes without mucking around with
92
+
intricate JavaScript code in the frontend.
93
+
94
+
The goal of this project is to create a clean API and plugin architecture so that JavaScript-savvy instructors
95
+
can easily create custom renderers.
96
+
97
+
The ultimate goal here is to completely replace one-off custom algorithm visualizations, whiteboard doodles,
98
+
and ad-hoc PowerPoint slide deck animations of CS concepts.
99
+
100
+
101
+
# Backend
102
+
103
+
## Offline mode for use as a production debugger
69
104
70
105
From a reader comment: "As a teaching tool it is invaluable, not only for teaching python, but for programming in general (what is going on in memory...).
71
106
I've actively used it to debug / trace short pieces of code. Any chance of having it offline (and without the limitations of an online tool like the inability to load all modules)? That would make a perfect pdb visualization tool."
0 commit comments