Commit Graph

191 Commits

Author SHA1 Message Date
Fabio Pliger
b7d17e4a7f Merge branch 'main' into poc_ui_blocks 2024-06-03 17:58:16 -05:00
pre-commit-ci[bot]
6eb27df104 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-06-03 22:17:06 +00:00
Fabio Pliger
a3a317294a lint 2024-06-03 17:16:53 -05:00
pre-commit-ci[bot]
3c11d958cb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-06-03 21:47:36 +00:00
Fabio Pliger
a7279de12e lint 2024-06-03 16:47:23 -05:00
Andrea Giammarchi
9b775ce015 Enhance MicroPython Terminal on both Main and Worker (#2083)
* Allow MicroPython Terminal on Main

* [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

* [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-30 13:36:42 +02:00
pre-commit-ci[bot]
1b27b8614b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-14 16:31:21 +00:00
Fabio Pliger
106be4b107 lint 2024-05-14 11:18:14 -05:00
Fabio Pliger
c8db625b20 fix examples and broken link from the removal of markdown and shoelace from stdlib 2024-05-14 11:17:54 -05:00
Andrea Giammarchi
d1a0d8ea98 Fix #2056 - Provide a default empty config per editor env (#2058)
* Fix #2056 - Provide a default empty config per editor env

* [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-13 10:36:00 +02:00
pre-commit-ci[bot]
4ca89cc4eb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-09 06:15:27 +00:00
Fabio Pliger
90d891e48b small fixes and improvements to examples 2024-05-09 01:15:13 -05:00
Andrea Giammarchi
04222b0d03 PyEditor - process(code) ability (#2053)
* 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>

* PyEditor - process(code) ability

* [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-08 21:33:07 +02: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
0c2dec3240 fix tests 2024-05-08 14:25:30 -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
313824d5ae switch examples to micropython 2024-05-07 11:39:18 -05:00
Fabio Pliger
18ffdb9f15 Merge branch 'main' into poc_ui_blocks 2024-05-07 09:47:24 -05:00
Andrea Giammarchi
c49cb9231b Added listeners to the constructing kw options (#2044) 2024-05-03 16:34:21 +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
9b46e7cc24 Merge branch 'main' into poc_ui_blocks 2024-04-15 13:51:52 +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
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
307eb738d5 precommit 2024-03-26 17:10:30 -05:00
Fabio Pliger
b73b30b2d8 remove js_property and fix references 2024-03-26 17:08:25 -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
111616a780 replace JSProperty with js_property 2024-03-26 15:59:34 -05:00
Fabio Pliger
ff7e2effe5 Merge branch 'main' into poc_ui_blocks 2024-03-26 14:58:17 -05:00
Andrea Giammarchi
910c666319 pyscript.ffi - expose most essential utilities (#2005)
pyscript.ffi - expose most essential utilities
2024-03-22 17:41:06 +01:00
Andrea Giammarchi
98c0f5e50d Fix #2000 - Allow advanced users to deal themselves with responses (#2001)
* Fix #2000 - Allow advanced users to deal themselves with responses

* rolled back the direct utility idea

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

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

* Updated to latest MicroPython and latest way to have direct access with fetch

* [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-03-20 16:40:24 +01:00
Andrea Giammarchi
a1268f1aa2 Fix #1993 - Expose a handy fetch API (#1994) 2024-03-14 19:36:23 +01:00
Andrea Giammarchi
df1d699fe6 [feature] py-editor setup (#1989) 2024-03-13 12:25:30 +01:00
Fabio Pliger
15896cd12c fix issue with example code not showing created button 2024-03-04 11:56:40 -06:00
Fabio Pliger
b9cfe74aa2 adapt shoelace to latest upates in ui.elements 2024-02-29 14:14:55 -06:00
pre-commit-ci[bot]
43c085d56f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-28 22:18:27 +00:00
Fabio Pliger
f5f01f6929 add test for more elements up to caption 2024-02-27 14:22:38 -06:00
pre-commit-ci[bot]
98413cfb69 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-27 16:44:27 +00:00
Fabio Pliger
850f8c6651 lint 2024-02-27 10:42:25 -06:00
Andrea Giammarchi
6121d32495 Merge branch 'main' into poc_ui_blocks 2024-02-14 15:51:22 +01:00
pre-commit-ci[bot]
e0cf825de7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-12 20:48:36 +00:00
Fabio Pliger
83d17a75ba lint 2024-02-12 14:47:36 -06:00