File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1111}
1212pw = PyWorker ("./worker.py" , type = "pyodide" , config = config )
1313
14+ def console_print (x ):
15+ print (x )
16+
1417pw .sync .session = io .request
18+ pw .sync .console_print = console_print
Original file line number Diff line number Diff line change 77import pyscript_fsspec_client .client
88
99fs = fsspec .filesystem ("pyscript" )
10- print ( fs .ls ("local" ))
10+ sync . console_print ( str ( fs .ls ("local" ) ))
1111
1212out = fs .cat ("local/mdurant/code/fsspec-proxy/pyproject.toml" )
13- print ( "binary:" , type (out ), out )
13+ sync . console_print ( str (( "binary:" , type (out ), out )) )
1414
1515out = fs .cat ("local/mdurant/code/fsspec-proxy/pyproject.toml" , start = 0 , end = 10 )
16- print ( "binary:" , type (out ), out )
16+ sync . console_print ( str (( "binary:" , type (out ), out )) )
1717
1818fs .pipe_file ("local/mdurant/code/fsspec-proxy/OUTPUT" , b"hello world" )
1919
You can’t perform that action at this time.
0 commit comments