Skip to content

Conversation

WebReflection
Copy link
Contributor

Description

This MR addresses a requirement about having a way to pre-bootstrap (setup) a py-editor through a shared environment so that further editors that use that very same env can simply use already what such editor provides.

This requirement has been discussed and demoed with Tufts and it's been also tested to be the right/desired thing to do.

/cc @ntoll

Changes

  • allow a setup attribute within the <script type="py-editor"> that will not show an editor but it will bootstrap the environment automatically
  • test that both the src attribute or the content of the script gets actually executed

Checklist

  • All tests pass locally
  • I have updated CHANGELOG.md
  • I have created documentation for this(if applicable)

Copy link
Member

@ntoll ntoll left a comment

Choose a reason for hiding this comment

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

:shipit:

@WebReflection WebReflection merged commit df1d699 into pyscript:main Mar 13, 2024
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