@@ -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.11.1 /core.css" >
121- <script type =" module" src =" https://pyscript.net/releases/2025.11.1 /core.js" ></script >
120+ <link rel =" stylesheet" href =" https://pyscript.net/releases/2025.11.2 /core.css" >
121+ <script type =" module" src =" https://pyscript.net/releases/2025.11.2 /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.11.1 /core.css" >
172- <script type =" module" src =" https://pyscript.net/releases/2025.11.1 /core.js" ></script >
171+ <link rel =" stylesheet" href =" https://pyscript.net/releases/2025.11.2 /core.css" >
172+ <script type =" module" src =" https://pyscript.net/releases/2025.11.2 /core.js" ></script >
173173 </head >
174174 <body >
175175 <h1 >Polyglot 🦜 💬 🇬🇧 ➡️ 🏴☠️</h1 >
@@ -231,6 +231,41 @@ points to the `div` element with the id "output". Finally, we assign the
231231
232232That's it!
233233
234+ ## Editing you app
235+
236+ If you use an IDE (like VSCode or PyCharm) then you'll probably want them to
237+ auto-suggest and introspect aspects of the Python code you're writing. The
238+ problem is that the ` pyscript ` namespace * we provide* isn't installed anywhere
239+ (because it's in your browser, not your IDE's context) so such information
240+ isn't, by default, picked up.
241+
242+ Thankfully Python stubs come to the rescue.
243+
244+ Members of our community have
245+ [ created Python stub files for PyScript] ( https://github.com/pyscript/pyscript-stubs ) .
246+ You should clone the linked-to repository and configure your IDE to consume the
247+ stub files.
248+
249+ For example, let's say you
250+ [ cloned the repository] ( https://github.com/pyscript/pyscript-stubs ) into:
251+ ` ~/src/stubs/pyscript-stubs ` , then in VSCode, you'd create, in your PyScript
252+ project, a file called ` .vscode/settings.json ` and add the following:
253+
254+ ``` js
255+ {
256+ " python.analysis.stubPath" : " ~/src/stubs/pyscript-stubs/src/pyscript-stubs"
257+ }
258+ ```
259+
260+ Then restart the Python language server in VSCode (Press ` Ctrl+Shift+P ` (or
261+ ` Cmd+Shift+P ` on Mac) to open the Command Palette and type:
262+ ` Python: Restart Language Server ` .
263+
264+ !!! note
265+
266+ The stubs themselves are found within the `src/pyscript-stubs` directory
267+ in the git repository, hence the longer path in the configuration file.
268+
234269## Sharing your app
235270
236271### PyScript.com
@@ -263,6 +298,12 @@ To run PyScript offline, without the need of a CDN or internet connection, read
263298the [ Run PyScript Offline] ( user-guide/offline.md ) section of the user
264299guide.
265300
301+ We also provide an ` offline.zip ` file with
302+ [ each release] ( https://pyscript.net/releases/2025.11.2/ ) . This file contains
303+ everything you need for an offline version of PyScript: PyScript itself,
304+ versions of Pyodide and MicroPython, and an index.html page from which you
305+ could create your offline-first PyScript work.
306+
266307## Conclusion
267308
268309Congratulations!
0 commit comments