Skip to content

Commit 8662fdb

Browse files
committed
Update project-ideas.md
1 parent 9dc6e48 commit 8662fdb

1 file changed

Lines changed: 39 additions & 4 deletions

File tree

‎v3/docs/project-ideas.md‎

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,50 @@ Here are some examples of input widgets:
5757

5858
# Custom data structure visualizations
5959

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.
6161

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:
6266

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.
6474

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.
6677

78+
There are (at least) two main ways to implement this feature:
6779

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
69104

70105
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...).
71106
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

Comments
 (0)