6
6
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!) ">
7
7
< meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 "/>
8
8
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
9
+ < script src ="./mini-coi.js " scope ="./ "> </ script >
9
10
< link rel ="manifest " href ="manifest.json ">
10
11
< link rel ="apple-touch-icon " sizes ="57x57 " href ="icon/apple-icon-57x57.png ">
11
12
< 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>
106
107
<!-- Clean console button -->
107
108
< div class ="fixed-action-btn hide-on-small-and-down " style ="bottom: 15px; right: 15px; ">
108
109
< a class ="btn-floating btn-small waves-effect waves-light zoom-button "
109
- onclick ="toplevelcallback .clear() "> < i
110
+ onclick ="terminal.terminal .clear() "> < i
110
111
class ="material-icons "> delete</ i > </ a >
111
112
</ div >
112
113
@@ -115,7 +116,7 @@ <h2 class="center white-text">Loading Python Interpreter</h2>
115
116
< a class ="btn-floating btn-small waves-effect waves-light zoom-button " onclick ="exec_all(editors[current_editor()]) "> < i
116
117
class ="material-icons "> play_arrow</ i > </ a >
117
118
< a class ="btn-floating btn-small waves-effect waves-light zoom-button "
118
- onclick ="toplevelcallback .clear() "> < i
119
+ onclick ="terminal.terminal .clear() "> < i
119
120
class ="material-icons "> delete</ i > </ a >
120
121
</ div >
121
122
@@ -174,7 +175,7 @@ <h4>Configuration</h4>
174
175
class ="material-icons "> remove</ i > </ a >
175
176
</ div >
176
177
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
178
179
class ="material-icons right "> refresh</ i > Reset
179
180
OCaml Interpreter</ a >
180
181
</ div >
@@ -289,9 +290,13 @@ <h4>Graphics main window</h4>
289
290
< div id ="box_2 " class ="box console-box ">
290
291
< div id ="emtopx " style ="font-size: var(--toplevel-font-size);display: none; "> </ div >
291
292
< 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 >
293
297
import code
294
298
from pyscript import window
299
+
295
300
window . change_font_size ( "toplevel" , 0 )
296
301
code . interact ( )
297
302
</ script >
@@ -416,6 +421,7 @@ <h4>Graphics main window</h4>
416
421
(for_statement)@bloc
417
422
(while_statement)@bloc
418
423
(try_statement)@bloc
424
+ (import_statement)@expr
419
425
(expression_statement)@expr` ) ;
420
426
} ) ;
421
427
} ) ;
0 commit comments