Commit Graph

322 Commits

Author SHA1 Message Date
Fabio Pliger
343f0590ed temp ugly fix for micropython, using the when decorator with a function without arguments 2024-05-09 01:14:20 -05:00
Fabio Pliger
69bb8bac4f Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-05-08 14:26:18 -05:00
Fabio Pliger
d348d9aaf6 lint 2024-05-08 14:26:05 -05:00
Fabio Pliger
0c2dec3240 fix tests 2024-05-08 14:25:30 -05:00
Fabio Pliger
4c20406e01 added msising attributes on the option Element. Tests are all passing now 2024-05-07 14:13:32 -05:00
pre-commit-ci[bot]
a6df2be4bc [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-07 16:55:13 +00:00
Fabio Pliger
7c1a0d115e lint and remove of textwrap in stdlib for micropython compatibility 2024-05-07 11:44:28 -05:00
Fabio Pliger
b885f30292 print micropython version on micropython pydom example 2024-05-07 11:43:22 -05:00
Fabio Pliger
62d31d996f fix pydom issue with micropython, created by the monkeypatch around JsProxy 2024-05-07 11:41:58 -05:00
Fabio Pliger
313824d5ae switch examples to micropython 2024-05-07 11:39:18 -05:00
Fabio Pliger
12c9946e41 enable pyweb on micropython 2024-05-07 11:36:01 -05:00
Fabio Pliger
18ffdb9f15 Merge branch 'main' into poc_ui_blocks 2024-05-07 09:47:24 -05:00
Andrea Giammarchi
8ec3381789 Even better PyEditor offline use case (#2050)
* Even better PyEditor offline use case

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-07 10:02:55 +02:00
Andrea Giammarchi
c49cb9231b Added listeners to the constructing kw options (#2044) 2024-05-03 16:34:21 +02:00
Andrea Giammarchi
d1d1c5740f Fixed py-editor offline use case (#2043) 2024-05-03 12:23:57 +02:00
Andrea Giammarchi
1a05ea5fd2 Fix #2031 - Add pyscript.WebSocket to the mix (#2042)
* Fix #2031 - Add pyscript.WebSocket to the mix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Working on a test case anyone can run

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-03 11:35:05 +02:00
Andrea Giammarchi
5b4e8527da Fix #2040 - Polyscript update to provide config dictionary (#2041)
* Fix #2040 - Polyscript update to provide config dictionary

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-02 11:47:52 +02:00
Andrea Giammarchi
83c2afeaf1 Updated Polyscript to its latest (#2036) 2024-04-24 16:56:47 +02:00
Andrea Giammarchi
643b76479f HTML class in MicroPython (#2033) 2024-04-22 12:43:17 +02:00
Andrea Giammarchi
6dc75e50f9 Merge branch 'main' into poc_ui_blocks 2024-04-17 17:11:06 +02:00
Andrea Giammarchi
cf92996071 Avoid PyWeb as part of stdlib on MicroPython (#2030)
* Avoid PyWeb as part of stdlib on MicroPython

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-17 17:10:23 +02:00
Andrea Giammarchi
9b46e7cc24 Merge branch 'main' into poc_ui_blocks 2024-04-15 13:51:52 +02:00
Andrea Giammarchi
c653296821 Added @xterm/addon-web-links to the terminal (#2027)
* Added @xterm/addon-web-links to the terminal

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-12 16:25:12 +02:00
Andrea Giammarchi
44cd6273ba PyTerminal .process(code) utility (#2026)
* PyTerminal .process(code) utility

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-12 15:44:20 +02:00
Andrea Giammarchi
2d5cf096e0 Fix MicroPython badly handling unicode chars (#2018)
## Changes

  * fixed an issue with the **py-editor** related to the new `linebuffer` directive
  * provide in worker hook scope a simple callback that pre-buffers unicode sequences [accordingly to the standard](https://encoding.spec.whatwg.org/#utf-8-bytes-needed) so that the buffer is sent to the terminal only once those sequences are fulfilled
  * test with both `µ` and way more convoluted sequences such as 👩‍❤️‍👨 that the output, if either requested as input or already evaluated from the page works ... in latter case `test = "👩‍❤️‍👨"` completely messes up the program and the resulting string is empty
2024-04-09 14:51:10 +02:00
Andrea Giammarchi
6ee8217593 Updated dev-dependencies w/ ESLint 9 (#2021) 2024-04-09 14:27:06 +02:00
Andrea Giammarchi
65954a627e Allow MicroPython input("...") to work beside the code.interact() (#2017) 2024-04-04 18:13:00 +02:00
Andrea Giammarchi
2f1b764251 Provide input("") and sync output to MicroPython (#2016)
Provide input("") and sync output to MicroPython
2024-04-04 17:34:12 +02:00
Andrea Giammarchi
1fb6cddd70 Forgot to update current npm version (#2015) 2024-04-04 15:53:52 +02:00
Andrea Giammarchi
239add4e20 Better MicroPython Terminal (#2014)
* Better MicroPython Terminal + fixed Pyodide astty value
2024-04-04 15:33:41 +02:00
pre-commit-ci[bot]
d7ac58d18d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-03 22:57:01 +00:00
Fabio Pliger
80529cae71 lint 2024-04-03 17:56:43 -05:00
Fabio Pliger
106a78b635 Merge branch 'main' into poc_ui_blocks 2024-04-03 17:56:13 -05:00
pre-commit-ci[bot]
abe706b9e9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-03 22:53:13 +00:00
Andrea Giammarchi
4e4ac56729 Fix #1998 - Allow lazy terminal bootstrap + MicroPython terminal
* Fix #1998 - Allow lazy PyTerminal bootstrap

* Fix #1998 - Allow lazy terminal bootstrap / runtime

* Implemented mpy terminal in both main and worker

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-03 15:50:20 +02:00
Andrea Giammarchi
1447cb3094 Fix #1997 - Bring pyscript stdlib to the PyEditor (#2010)
* Fix #1997 - Bring pyscript stdlib to the PyEditor
2024-03-28 10:43:26 +01:00
Fabio Pliger
f6a634ce6e precommit again 2024-03-26 17:18:14 -05:00
Fabio Pliger
152ad6cf4a Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-03-26 17:11:43 -05:00
Fabio Pliger
307eb738d5 precommit 2024-03-26 17:10:30 -05:00
pre-commit-ci[bot]
27363f4c59 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-26 22:09:31 +00:00
Fabio Pliger
b73b30b2d8 remove js_property and fix references 2024-03-26 17:08:25 -05:00
Fabio Pliger
0eadcc10e9 fix bug around Element not being able to map global attributes in subclasses 2024-03-26 17:08:10 -05:00
Fabio Pliger
4cc30925ec Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-03-26 16:27:13 -05:00
Fabio Pliger
8d955ad183 remove js_property and just use JSProperty with name and allow_nones as arguments 2024-03-26 16:25:35 -05:00
pre-commit-ci[bot]
1c315f8318 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-26 21:02:03 +00:00
Fabio Pliger
da3db5141e fixed merge conflicts 2024-03-26 16:01:48 -05:00
Fabio Pliger
ef43e1f6b2 Merge branch 'poc_ui_blocks' of github.com:pyscript/pyscript into poc_ui_blocks 2024-03-26 16:01:20 -05:00
pre-commit-ci[bot]
5d22ec1fb0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-26 20:59:40 +00:00
Fabio Pliger
111616a780 replace JSProperty with js_property 2024-03-26 15:59:34 -05:00
Fabio Pliger
ee9403971f replace JSProperty with js_property 2024-03-26 15:59:18 -05:00