- Notifications
You must be signed in to change notification settings - Fork1.5k
Add a Toga SPA rendering demo#31
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
minor comment. lgtm \m/
import asyncio | ||
import micropip | ||
await micropip.install([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
You should be able to change this with
<py-env> './static/wheels/travertino-0.1.3-py3-none-any.whl', './static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl', './static/wheels/toga_web-0.3.0.dev33-py3-none-any.whl', './static/wheels/freedom-0.0.1-py3-none-any.whl'</py-env>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
That works on the SPA version; but it doesn't appear to work on the served version - it converts:
- '/static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl'
into a request forhttps://cdn.jsdelivr.net/static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl
- './static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl'
into a request forhttps://cdn.jsdelivr.net/pyodide/v0.20.0/full/static/wheels/toga_core-0.3.0.dev33-py3-none-any.whl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks like the problem was between keyboard and chair. A stale pyscript build was the problem. New PR incoming.
Same Toga "Freedom units" demo; this time rendered a 100% client-side SPA.