66 content ="An efficient, intuitive and cross-platform web IDE for the Python language (recent: v3.7), with your code interpreted and running in your browser! (no server is needed!) ">
77 < meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 "/>
88 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
9+ < script src ="./mini-coi.js " scope ="./ "> </ script >
910 < link rel ="manifest " href ="manifest.json ">
1011 < link rel ="apple-touch-icon " sizes ="57x57 " href ="icon/apple-icon-57x57.png ">
1112 < link rel ="apple-touch-icon " sizes ="60x60 " href ="icon/apple-icon-60x60.png ">
@@ -106,7 +107,7 @@ <h2 class="center white-text">Loading Python Interpreter</h2>
106107<!-- Clean console button -->
107108< div class ="fixed-action-btn hide-on-small-and-down " style ="bottom: 15px; right: 15px; ">
108109 < a class ="btn-floating btn-small waves-effect waves-light zoom-button "
109- onclick ="toplevelcallback .clear() "> < i
110+ onclick ="terminal.terminal .clear() "> < i
110111 class ="material-icons "> delete</ i > </ a >
111112</ div >
112113
@@ -115,7 +116,7 @@ <h2 class="center white-text">Loading Python Interpreter</h2>
115116 < a class ="btn-floating btn-small waves-effect waves-light zoom-button " onclick ="exec_all(editors[current_editor()]) "> < i
116117 class ="material-icons "> play_arrow</ i > </ a >
117118 < a class ="btn-floating btn-small waves-effect waves-light zoom-button "
118- onclick ="toplevelcallback .clear() "> < i
119+ onclick ="terminal.terminal .clear() "> < i
119120 class ="material-icons "> delete</ i > </ a >
120121</ div >
121122
@@ -174,7 +175,7 @@ <h4>Configuration</h4>
174175 class ="material-icons "> remove</ i > </ a >
175176 </ div >
176177
177- < a class ="waves-effect waves-light btn config-element " onclick ="toplevelcallback.reset () "> < i
178+ < a class ="waves-effect waves-light btn config-element " onclick ="terminal.terminal.clear () "> < i
178179 class ="material-icons right "> refresh</ i > Reset
179180 OCaml Interpreter</ a >
180181 </ div >
@@ -289,9 +290,13 @@ <h4>Graphics main window</h4>
289290 < div id ="box_2 " class ="box console-box ">
290291 < div id ="emtopx " style ="font-size: var(--toplevel-font-size);display: none; "> </ div >
291292 < div id ="toplevel-container ">
292- < script id ="toplevel-terminal " type ="mpy " terminal >
293+ < mpy-config >
294+ interpreter = "js/micropython/micropython.mjs"
295+ </ mpy-config >
296+ < script id ="toplevel-terminal " type ="mpy " terminal worker >
293297 import code
294298 from pyscript import window
299+
295300 window . change_font_size ( "toplevel" , 0 )
296301 code . interact ( )
297302 </ script >
@@ -416,6 +421,7 @@ <h4>Graphics main window</h4>
416421 (for_statement)@bloc
417422 (while_statement)@bloc
418423 (try_statement)@bloc
424+ (import_statement)@expr
419425 (expression_statement)@expr` ) ;
420426 } ) ;
421427 } ) ;
0 commit comments