Skip to content

PyEditor changes / improvements#2472

Open
WebReflection wants to merge 13 commits into
mainfrom
py-editor-improvements
Open

PyEditor changes / improvements#2472
WebReflection wants to merge 13 commits into
mainfrom
py-editor-improvements

Conversation

@WebReflection

@WebReflection WebReflection commented May 6, 2026

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 WebReflection force-pushed the py-editor-improvements branch 4 times, most recently from 7dbe77f to bb94d11 Compare May 6, 2026 13:31
@WebReflection WebReflection force-pushed the py-editor-improvements branch from f17ff6c to 8d24a7b Compare May 6, 2026 14:06
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.

1 participant