Skip to content

PyEditor changes / improvements#2472

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

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

Conversation

@WebReflection
Copy link
Copy Markdown
Contributor

@WebReflection WebReflection commented May 6, 2026

Description

I am trying to satisfy some requirement such as:

  • max amount of rows: codemirror is not a textarea and rows work out of CSS. We don't have a way to keep the editor area size reasonable, I'd like to add that in here.
  • the setup node delays the visualization of the code and that's bad. Setup should eventually be able to be async and run once before the code gets evaluated.
  • there is no way to reuse an env name if the previous node/element was destroyed (SPA use case), now there is one via env-override boolean attribute
  • there is no way to run some arbitrary code each time Run button is pressed, not there is one via onbeforerun attribute, it contains Python code to run ASAP before anything else
  • there is no way to target an already available DOM element as output for print statements, now there is one via output attribute, it contains the element output target id to use instead of creating a new div for it

Changes

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@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