Skip to content

Commit 8bcc0ac

Browse files
authored
Merge pull request #173 from pyscript/2025-2-4
2025 2 4
2 parents e2feba7 + 52489ca commit 8bcc0ac

File tree

8 files changed

+30
-15
lines changed

8 files changed

+30
-15
lines changed

Diff for: docs/assets/images/pyeditor-stop.gif

309 KB
Loading

Diff for: docs/beginning-pyscript.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ module in the document's `<head>` tag:
117117
<meta charset="utf-8" />
118118
<meta name="viewport" content="width=device-width,initial-scale=1" />
119119
<title>🦜 Polyglot - Piratical PyScript</title>
120-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.3/core.css">
121-
<script type="module" src="https://pyscript.net/releases/2025.2.3/core.js"></script>
120+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
121+
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
122122
</head>
123123
<body>
124124

@@ -168,8 +168,8 @@ In the end, our HTML should look like this:
168168
<meta charset="utf-8" />
169169
<meta name="viewport" content="width=device-width,initial-scale=1" />
170170
<title>🦜 Polyglot - Piratical PyScript</title>
171-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.3/core.css">
172-
<script type="module" src="https://pyscript.net/releases/2025.2.3/core.js"></script>
171+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
172+
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
173173
</head>
174174
<body>
175175
<h1>Polyglot 🦜 💬 🇬🇧 ➡️ 🏴‍☠️</h1>

Diff for: docs/user-guide/editor.md

+15
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ The outcome of these code fragments should look something like this:
6767

6868
Hovering over the Python editor reveals the "run" button.
6969

70+
### Stop evaluation
71+
72+
Sometimes, for whatever reason, the fragment of code in the editor will never
73+
complete. Perhaps it's stuck in an infinite loop and you need to stop the
74+
evaluation of your code so you can fix the problem and start it again.
75+
76+
When the code is running, hovering over the editor will reveal a stop button
77+
(where the run button was found). Click on it, confirm you want to stop your
78+
code, and then the code will stop and the editor will refresh so you can fix
79+
your code.
80+
81+
It looks something like this:
82+
83+
<img src="../../assets/images/pyeditor-stop.gif" style="border: 1px solid black; border-radius: 0.2rem; box-shadow: var(--md-shadow-z1);"/>
84+
7085
### Setup
7186

7287
Sometimes you need to create a pre-baked Pythonic context for a shared

Diff for: docs/user-guide/filesystem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ PyScript interacts with two filesystems.
3030

3131
Access to the device's local filesystem **is only available in Chromium
3232
based browsers**. The maximum capacity for files shared in this way is
33-
4GB, and **if this size is exceeded may result in lost data**.
33+
4GB.
3434

3535
Firefox and Safari do not support this capability (yet), and so it is not
3636
available to PyScript running in these browsers.

Diff for: docs/user-guide/first-steps.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ CSS:
2020
<meta charset="UTF-8">
2121
<meta name="viewport" content="width=device-width,initial-scale=1.0">
2222
<!-- PyScript CSS -->
23-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.3/core.css">
23+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
2424
<!-- This script tag bootstraps PyScript -->
25-
<script type="module" src="https://pyscript.net/releases/2025.2.3/core.js"></script>
25+
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
2626
</head>
2727
<body>
2828
<!-- your code goes here... -->

Diff for: docs/user-guide/plugins.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ For example, this will work because all references are contained within the
100100
registered function:
101101

102102
```js
103-
import { hooks } from "https://pyscript.net/releases/2025.2.3/core.js";
103+
import { hooks } from "https://pyscript.net/releases/2025.2.4/core.js";
104104

105105
hooks.worker.onReady.add(() => {
106106
// NOT suggested, just an example!
@@ -114,7 +114,7 @@ hooks.worker.onReady.add(() => {
114114
However, due to the outer reference to the variable `i`, this will fail:
115115

116116
```js
117-
import { hooks } from "https://pyscript.net/releases/2025.2.3/core.js";
117+
import { hooks } from "https://pyscript.net/releases/2025.2.4/core.js";
118118

119119
// NO NO NO NO NO! ☠️
120120
let i = 0;
@@ -147,7 +147,7 @@ the page.
147147

148148
```js title="log.js - a plugin that simply logs to the console."
149149
// import the hooks from PyScript first...
150-
import { hooks } from "https://pyscript.net/releases/2025.2.3/core.js";
150+
import { hooks } from "https://pyscript.net/releases/2025.2.4/core.js";
151151

152152
// The `hooks.main` attribute defines plugins that run on the main thread.
153153
hooks.main.onReady.add((wrap, element) => {
@@ -197,8 +197,8 @@ hooks.worker.onAfterRun.add(() => {
197197
<!-- JS plugins should be available before PyScript bootstraps -->
198198
<script type="module" src="./log.js"></script>
199199
<!-- PyScript -->
200-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.3/core.css">
201-
<script type="module" src="https://pyscript.net/releases/2025.2.3/core.js"></script>
200+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
201+
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
202202
</head>
203203
<body>
204204
<script type="mpy">

Diff for: docs/user-guide/workers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ Here's how:
282282
<meta charset="utf-8">
283283
<meta name="viewport" content="width=device-width,initial-scale=1">
284284
<!-- PyScript CSS -->
285-
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.3/core.css">
285+
<link rel="stylesheet" href="https://pyscript.net/releases/2025.2.4/core.css">
286286
<!-- This script tag bootstraps PyScript -->
287-
<script type="module" src="https://pyscript.net/releases/2025.2.3/core.js"></script>
287+
<script type="module" src="https://pyscript.net/releases/2025.2.4/core.js"></script>
288288
<title>PyWorker - mpy bootstrapping pyodide example</title>
289289
<script type="mpy" src="main.py"></script>
290290
</head>

Diff for: version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "2025.2.3"
2+
"version": "2025.2.4"
33
}

0 commit comments

Comments
 (0)