Skip to content

Commit dfeaac6

Browse files
author
Jean-Baptiste Doderlein
committed
Remove Worker
1 parent 92c70d0 commit dfeaac6

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ WIP : A small but efficient, intuitive and responsive Python IDE right in your b
88
- Change XtermJS look to better match BetterEditor design
99
- Make script to build from the sources the libs in the repo
1010
- Update PWA settings
11-
- Make CI/CD to publish on github pages
12-
- Clean up JS to remove every useless functions
11+
- Clean up JS to remove every useless functions
12+
13+
## Use of Web Worker / Python Interpreter
14+
We now use Micro Python but we could use original python interpreter if the toplevel was in a web worker.
15+
To accept the toplevel in web worker, we would need these headers :
16+
```
17+
Cross-Origin-Opener-Policy: same-origin
18+
Cross-Origin-Embedder-Policy: require-corp
19+
```
20+
But this is not possible on github pages.

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h4>Graphics main window</h4>
289289
<div id="box_2" class="box console-box">
290290
<div id="emtopx" style="font-size: var(--toplevel-font-size);display: none;"></div>
291291
<div id="toplevel-container">
292-
<script id="toplevel-terminal" type="mpy" terminal worker>
292+
<script id="toplevel-terminal" type="mpy" terminal>
293293
import code
294294
from pyscript import window
295295
window.change_font_size("toplevel",0)

0 commit comments

Comments
 (0)