File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
< style >
8
8
.flex {
9
9
display : flex;
10
+ flex : 1 ;
10
11
}
11
12
12
13
.flex .row {
30
31
31
32
< body >
32
33
< h1 > Schemascii Playground</ h1 >
33
- < div class ="flex row " style =" width: 100% " >
34
+ < div class ="flex row ">
34
35
< div class ="flex column ">
35
36
< div class ="flex row ">
36
37
< p style ="flex: 1 "> Schemascii Source</ p >
@@ -59,13 +60,14 @@ <h1>Schemascii Playground</h1>
59
60
try {
60
61
info ( "Loading Python... " ) ;
61
62
pyodide = await loadPyodide ( { stdout : info , stderr : error } ) ;
62
- info ( "done\nINstalling micropip..." ) ;
63
- await pyodide . loadPackage ( "micropip" ) ;
63
+ info ( "done\nInstalling micropip..." ) ;
64
+ await pyodide . loadPackage ( "micropip" , { errorCallback : error , messgaeCallback : info } ) ;
64
65
info ( "done\nFetching current Schemascii version... " ) ;
65
66
var pyproject_toml = await fetch ( "pyproject.toml" ) . then ( x => x . text ( ) ) ;
66
67
var ver = / v e r s i o n = " ( [ \d . ] + ) " / . exec ( pyproject_toml ) [ 1 ] ;
67
68
info ( `${ ver } \nInstalling schemascii-${ ver } ... ` ) ;
68
- await pyodide . pyimport ( "micropip" ) . install ( `https://dragoncoder047.github.io/schemascii/dist/schemascii-${ ver } -py3-none-any.whl` ) ;
69
+ await pyodide . pyimport ( "micropip" , { errorCallback : error , messgaeCallback : info } )
70
+ . install ( `https://dragoncoder047.github.io/schemascii/dist/schemascii-${ ver } -py3-none-any.whl` ) ;
69
71
schemascii = pyodide . pyimport ( "schemascii" ) ;
70
72
await setup ( ) ;
71
73
console . textContent = "ready\n" ;
You can’t perform that action at this time.
0 commit comments