|
50 | 50 |
|
51 | 51 | "default_viz_config": |
52 | 52 | { |
53 | | - "embeddedMode": false, |
54 | | - "heightChangeCallback": "redrawAllVisualizerArrows" |
| 53 | + "embeddedMode": true, |
| 54 | + "verticalStack": true |
55 | 55 | }, |
56 | 56 |
|
57 | 57 | "eg1.html": |
|
60 | 60 | "js/t1.js", |
61 | 61 | { |
62 | 62 | "python_scripts/t1a.py": {} |
63 | | - "python_scripts/t1b.py": {"embeddedMode": true} |
| 63 | + "python_scripts/t1b.py": {"embeddedMode": false} |
64 | 64 | } |
65 | 65 | ] |
66 | 66 | "eg2.html": |
67 | 67 | [ |
68 | 68 | "js/t2.js", |
69 | 69 | { |
70 | | - # the heightChangeCallback is removed from the params below |
71 | | - "python_scripts/t2.py": {"heightChangeCallback": ""} |
| 70 | + # verticalStack is removed from the params below |
| 71 | + "python_scripts/t2.py": {"verticalStack": ""} |
72 | 72 | } |
73 | 73 | ] |
74 | 74 | } |
|
81 | 81 | "http://pythontutor.com/visualize.html" |
82 | 82 |
|
83 | 83 | If "default_viz_config" is not supplied it defaults to |
84 | | - {'embeddedMode': true, |
85 | | - 'heightChangeCallback': 'redrawAllVisualizerArrows', |
| 84 | + {'heightChangeCallback': 'redrawAllVisualizerArrows', |
86 | 85 | 'editCodeBaseURL': viz_url} |
87 | 86 |
|
88 | 87 | where viz_url is the value associated with the "visualizer_url" key. |
| 88 | +Note: for this version heightChangeCallback is hard-wired to be |
| 89 | +redrawAllVisualizerArrows. |
89 | 90 |
|
90 | 91 | The dictionary associated with a python script overrides the |
91 | 92 | "default_viz_config" dictionary. |
|
141 | 142 | DEFALUT_VIZ_URL = 'http://pythontutor.com/visualize.html' |
142 | 143 |
|
143 | 144 | # The global default visualization configuration |
144 | | -DEFAULT_VIZ_CONFIG = {'embeddedMode': False, |
145 | | - 'heightChangeCallback': 'redrawAllVisualizerArrows', |
| 145 | +# Note: heightChangeCallback is hard-wired to be redrawAllVisualizerArrows |
| 146 | +DEFAULT_VIZ_CONFIG = {'heightChangeCallback': 'redrawAllVisualizerArrows', |
146 | 147 | 'editCodeBaseURL': DEFALUT_VIZ_URL} |
147 | 148 |
|
148 | 149 |
|
|
0 commit comments