Skip to content

Pyscript update #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2025
Merged

Pyscript update #2

merged 2 commits into from
Apr 23, 2025

Conversation

Amourspirit
Copy link
Contributor

Fix for issue #1

Update to a recent version of pyscript.

This pull request includes several changes to the index.html file and the addition of a new main.py file and pyscript.toml configuration file. The changes focus on updating the PyScript integration and moving the Python code to an external file.

PyScript Integration Updates:

  • Updated the PyScript CSS and script tags in index.html to use the latest release version.
  • Replaced the inline PyScript code in index.html with a script tag that references an external Python file main.py.

Code Refactoring:

  • Moved the Python code from index.html to a new main.py file, which includes functions for URL parameter handling, version checking, and event listeners.

Configuration:

  • Added a new pyscript.toml configuration file to specify the project name, description, required packages, and files to fetch.

@spex66
Copy link

spex66 commented Apr 11, 2025

good job @Amourspirit 👍

  • updated locally index.html to 2025.3.1 (just to be on top of April'25 pyscript version :))
  • started local browser python3 -m http.server 8008 to dodge the CORS error I got opening with file:/// protocol
  • tada 🥳 confirmed working
  • some dead buttons, but nothing blocking
    image

I was curious about the tech-stack used, as pyscript/pyodite is quite awesome. But interactive understanding pip package-versions is a plus.

@Amourspirit
Copy link
Contributor Author

Thanks. I used this in my little side project Version Runner

@nok
Copy link
Owner

nok commented Apr 23, 2025

@Amourspirit , thanks for the fix and sorry for the late response. I checked your PR and it's LGTM.
@spex66 It's easier to use nok.github.io/pipdev.

Copy link
Owner

@nok nok left a comment

Choose a reason for hiding this comment

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

LGTM

@nok nok merged commit 83f5c46 into nok:main Apr 23, 2025
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.

3 participants