Skip to content

Commit e48c17e

Browse files
committed
update doc
1 parent cf1edf9 commit e48c17e

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎v3/docs/make_visualizations.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ For an example of how to use this program and to embed visualizations we will as
66

77
The first step is to copy across some `.js` files and `.css` files.
88

9-
cp -r $OPT/js/* js
10-
cp -r $OPT/css/* css
9+
cp -r $OPT/js/* js
10+
cp -r $OPT/css/* css
1111

1212
The next step is to create the Makefile - say `make_viz.json` and to add the required information to the file. An example of such a file is given below. The required visualizations can be built as follows.
1313

14-
python $OPT/make_visualizations.py make_viz.json
14+
python $OPT/make_visualizations.py make_viz.json
1515

1616
Calling this again will rebuild everything. Alternatively, the program can be used to build visualizations for particular `.html` files listed in `make_viz.json` by listing them at the end of the command. For example
1717

18-
python $OPT/make_visualizations.py make_viz.json file1.html file3.html
18+
python $OPT/make_visualizations.py make_viz.json file1.html file3.html
1919

2020
For the example we assume the `.html` files are `file1.html`, `file2.html` and `file3.html` and that `file1.html` will have visualizations for `prog1_1.py` and `prog1_2.py`; `file2.html` will have a visualization for `prog2_1.py`; and `file3.html` will have a visualization for `prog3_1.py`. Further we assume that a local OPT server has been set up (see the following section) at the URL http://my.local.server/visualize.html.
2121

@@ -70,10 +70,10 @@ If you already have a visualization set up and you would like to use this approa
7070
At the end of the dependencies information injected into the `.html` file is a comment containing div entries that you can cut-and-paste into the position within the `.html` file where you would like the visualization to appear. The Makefile does not know where this is to be added and so this step needs to be done manually. Re-making this file will not remove this infomation from the body of the file. So, for example, in the header of `file3.html` you should find
7171
the following.
7272

73-
<!-- Cut and paste the following lines to the place where the visualizations are to be inserted
74-
75-
<div id="prog3_1_pyDiv"></div>
76-
-->
73+
<!-- Cut and paste the following lines to the place where the visualizations are to be inserted
74+
75+
<div id="prog3_1_pyDiv"></div>
76+
-->
7777

7878

7979
For reference, we list the possible visualization parameters (with system-wide defaults - based on comments in `pytutor.js`) below.

0 commit comments

Comments
 (0)