Skip to content
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

Pyscript update #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Amourspirit
Copy link

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.

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