Skip to content

Commit 5dc7213

Browse files
committed
Update opt-trace-format.md
1 parent d45bb80 commit 5dc7213

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎v3/docs/opt-trace-format.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,15 @@ Ok, still with me? Let's now dig into what an individual element in `trace` look
127127

128128
## Interlude: Viewing a trace in the OPT frontend
129129

130-
To view a trace locally on your computer without setting up a Webserver, load up `v3/demo.html` in your browser.
130+
To view a trace locally on your computer without setting up a Webserver, load up [`v3/demo.html`](https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/demo.html) in your browser.
131131
Now create a trace file called `v3/test-trace.js`, which contains a single trace variable like so:
132132

133133
```javascript
134134
var trace = { ... your trace object ... };
135135
```
136136

137+
[Here is the example test-trace.js in the repo.](https://github.com/pgbovine/OnlinePythonTutor/blob/master/v3/test-trace.js)
138+
137139
Now reload `v3/demo.html`, and if everything works out, it will create a new visualization using the trace in the `trace`
138140
variable from `v3/test-trace.js`. I use this technique as a quick way of testing out what different traces look like
139141
without setting up a server.

0 commit comments

Comments
 (0)