Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3f05d33

Browse files
committed
remove unused code in App
1 parentcb61908 commit3f05d33

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

‎pyscriptjs/src/App.svelte

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
importTailwindfrom'./Tailwind.svelte';
33
import {loadInterpreter }from'./interpreter';
44
import {
5-
componentsNavOpen,
65
initializers,
76
loadedEnvironments,
87
mode,
@@ -15,14 +14,6 @@
1514
let iconSize=2;
1615
let pyodideReadyPromise;
1716
18-
function bumpSize(evt) {
19-
iconSize=4;
20-
}
21-
22-
function downSize(evt) {
23-
iconSize=2;
24-
}
25-
2617
const initializePyodide=async ()=> {
2718
pyodideReadyPromise=loadInterpreter();
2819
let newEnv= {
@@ -36,7 +27,6 @@
3627
});
3728
3829
let showNavBar=false;
39-
let main=document.querySelector('#main');
4030
navBarOpen.subscribe(value=> {
4131
showNavBar=value;
4232
});
@@ -61,10 +51,6 @@
6151
}
6252
},3000);
6353
};
64-
65-
function toggleComponentsNavBar(evt) {
66-
componentsNavOpen.set(!$componentsNavOpen);
67-
}
6854
</script>
6955

7056
<svelte:head>

‎pyscriptjs/src/interpreter.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ output_manager = OutputManager()
413413

414414
constloadInterpreter=asyncfunction():Promise<any>{
415415
console.log('creating pyodide runtime');
416+
//@ts-ignore
416417
pyodide=awaitloadPyodide({
417418
stdout:console.log,
418419
stderr:console.log,
@@ -422,15 +423,6 @@ const loadInterpreter = async function (): Promise<any> {
422423
console.log('loading micropip');
423424
awaitpyodide.loadPackage('micropip');
424425
console.log('loading pyscript module');
425-
// await pyodide.runPythonAsync(`
426-
// from pyodide.http import pyfetch
427-
// response = await pyfetch("/build/pyscript.py")
428-
// with open("pyscript.py", "wb") as f:
429-
// content = await response.bytes()
430-
// print(content)
431-
// f.write(content)
432-
// `)
433-
// let pkg = pyodide.pyimport("pyscript");
434426

435427
console.log('creating additional definitions');
436428
constoutput=pyodide.runPython(additional_definitions);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp