Commit Graph

33 Commits

Author SHA1 Message Date
Roman Yurchak e2b22a84c3
Add FAQ when micropip fails to find a pure python wheel (#2558)
Closes #2557:
Users keep reporting issues about micropip not finding a pure python wheel
e.g. latest in pyscript/pyscript#297 so it appears the the current message is
not explicit enough.

We should explain in more detail,
* what is happening and why
* what the user can do about it and possibly point them to the issue tracker.
2022-05-17 11:07:36 -07:00
Roman Yurchak 3b74dcbfcf
DOC update FAQ instruction for detecting Emscripten runtime (#2552) 2022-05-13 15:39:50 +09:00
Henry Schreiner 4ec97fd939
fix: minor touchups (#2374)
Fixing a minor issue - pyodide-build doesn't work out of the box, it's missing two requirements.

Also updating a typo in the docs, and minor pre-commit bump.
2022-04-08 13:58:58 -07:00
Will Lachance 075714f30f
Update documentation for passing in global namespace (#2324)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2022-03-27 13:23:23 -07:00
Hood Chatham 7f908beb4c
ENH Calculate indexURL from error stack trace (#2292)
If no indexURL is provided, we throw and catch an error and
then use ErrorStackParser to calculate where pyodide.js has
been loaded from. Resolves #2290.

Question: But getting the URL from error stack trace is well... really
hacky. Can't we use
[`document.currentScript`](https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript)
or
[`import.meta.url`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import.meta)
instead?
Answer: `document.currentScript` works for the browser main thread.
`import.meta` works for es6 modules. In a classic webworker, I think there
is no approach that works. Also we would need some third approach for node
when loading a commonjs module using `require`. On the other hand, this
stack trace approach works for every case without any feature detection
code.
2022-03-20 22:44:54 -07:00
Hood Chatham 0e1e2ac01c
Python 3.10 (#2225) 2022-03-17 15:48:56 -07:00
Henry Schreiner 4f8b0a0344
chore: more pre-commit checking (#2257) 2022-03-07 21:51:20 -08:00
Hood Chatham 1f4f3e2b85
MAINT Apply prettier to everything by default (#2095) 2022-01-10 13:47:59 -08:00
Gyeongjae Choi ce2746b690
DOCS Documentation cleanup [skip ci] (#2070)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Sylvain Riondet <sylvain.riondet@emailtree.ai>
Co-authored-by: Sylvain <sylvainriondet@gmail.com>
2022-01-04 16:46:00 +01:00
Hood Chatham f9bfb7976e
ENH Destroy awaitable PyProxy after awaiting it (#2030) 2021-12-14 10:56:02 -08:00
Grimmer 89682dabfe
DOC Replace "Javascript" with "JavaScript" in documents and comments [skip ci] (#1860) 2021-09-29 10:01:53 +02:00
Hood Chatham 96d3b9a1ac
Update docs following #1573 (#1840) 2021-09-16 08:30:23 -07:00
Hood Chatham da7d8251cf
ENH Destroy proxies created in JsProxy.__call__ when done with call (#1573)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-09-11 16:34:45 -07:00
Hood Chatham 250c48038b
Release 0.18.0 (#1775) 2021-08-03 21:34:14 +02:00
Hood Chatham ef88ceeb5d
Run prettier to format documentation source files [skip ci] (#1752) 2021-07-27 01:00:27 +02:00
Hood Chatham b4f4bcffdc
Update to Python 3.9.5 (#1637)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-06-19 15:49:25 -07:00
Grimmer 9dc5a76909
DOCS Fix fetch code snippet [skip ci] (#1571) 2021-05-03 08:28:05 -07:00
Jeremy Tuloup 086db82f44
Add missing backtick in the faq docs (#1526)
Thanks
2021-04-22 01:49:13 -07:00
Hood Chatham a3d7592686
DOCS Add faq on redirecting staandard streams [skip ci] (#1525) 2021-04-22 10:34:07 +02:00
Hood Chatham 8d4264af25
Version 0.17.0 release notes (#1485)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-04-20 08:32:15 -07:00
Hood Chatham 24aa2c885e
DOCS Fix visually confusing code example [skip ci] (#1491) 2021-04-19 08:09:29 -07:00
Hood Chatham 129f72eca4
DOCS Add faq on redirecting staandard streams [skip ci] (#1486) 2021-04-18 18:03:44 -07:00
Hood Chatham a6ea6c9f00
DOCS memory leak avoidance tips [skip ci] (#1484) 2021-04-18 07:10:45 -07:00
Hood Chatham 62829f45db
Use FinalizationRegistry for garbage collection when available (#1306) 2021-04-17 23:23:18 -07:00
Hood Chatham 6fd605e436
FAQ pickle to send objects from server to client (#1451) 2021-04-12 09:34:02 -07:00
Hood Chatham 7716755d0e
DOCS Update readme, index and about page, edits to usage docs (#1420) 2021-04-07 00:11:00 +02:00
Hood Chatham 3e36ac2c30
DOCS Documentation about type translation of errors (#1435) 2021-04-06 10:14:07 +02:00
Hood Chatham e0966c83b3
Docs textwrap, typo fixes, add links (#1351) 2021-03-20 11:56:10 -07:00
Hood Chatham f8bb138fa7
DOC Normalize capitalization of Python, Pyodide, and Javascript (#1297) 2021-03-03 09:11:50 +01:00
Hood Chatham 4d213a6b6e
ENH PyProxy getattr/etc traps & added getitem/etc for PyMappings (#1175) 2021-02-23 20:25:10 +01:00
Hood Chatham 65e3a808e7
DOC Update faq on custom namespaces (#1253) 2021-02-15 20:38:07 +01:00
Hood Chatham 264157a480
Highlight embedded python code in docs (#1252) 2021-02-15 09:38:49 +01:00
Hood Chatham dbc60a8abf
DOCS: Move docs into three subfolders based on top level sections (#1149) 2021-01-18 20:56:47 +01:00