FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PyEditor changes / improvements by WebReflection · Pull Request #2472 · pyscript/pyscript · GitHub

PyEditor changes / improvements - #2472

Merged
WebReflection merged 13 commits into
mainfrom
py-editor-improvements
Jun 12, 2026
Merged

PyEditor changes / improvements#2472
WebReflection merged 13 commits into
mainfrom
py-editor-improvements

Conversation

WebReflection commented May 6, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Description

This MR provides new features and changes (for good) some other.

Changes

  • the code in the editor is now shown before the environment bootstraps, allowing instant/quick visualization of the code before the interpreter/runtime becomes ready (specially with setup use cases)
  • it is now possible to define a max amount of desired rows through the rows attribute
  • it is now possible to define custom look for both RUN and STOP buttons within the editor
  • envs can be reused, once destroyed, by specifying an env-override attribute within the script
  • it is now possible to run arbitrary Python code right before the RUN button executes everything else. This is done via the onbeforerun attribute that should contain Python code as one-liner string.
  • the output can now be specified as id of the target output so that the editor will not create its own container

Notes

All these features have been visually and practically tested live (by me and others) but most of these require convoluted orchestration that is neither easy to provide as mock/test nor easy to ensure visually, due CSS and different heights / buttons playing their role.

This is also likely part of an even bigger refactoring/upgrade of the editor potentials but I feel like the current milestone is good enough to help our users further too.

This MR would also allow us to release PyScript with all the latest available runtime and features/dependencies.

Checklist

WebReflection force-pushed the py-editor-improvements branch 4 times, most recently from 7dbe77f to bb94d11 Compare May 6, 2026 13:31
WebReflection force-pushed the py-editor-improvements branch from f17ff6c to 8d24a7b Compare May 6, 2026 14:06

ntoll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

WebReflection merged commit 691c6ca into main Jun 12, 2026
2 checks passed
WebReflection deleted the py-editor-improvements branch June 12, 2026 13:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL