-
I'm converting https://honegumi.readthedocs.io/ to use PyScript to dynamically generate outputs as a function of input selections in a grid rather than generating all combinations in advance (for scalability reasons). However, I've been having trouble getting it to recognize and load files (either from a remote location or from within the same repository).
Here are examples of a few of the files I'd like to use -- https://github.com/sgbaird/honegumi/blob/dev/src/honegumi/core/_honegumi.py, https://github.com/sgbaird/honegumi/blob/dev/src/honegumi/ax/utils/constants.py) -- these are part of a package. The idea was to use links to the GitHub direct download files from the Some other things I've tried: https://github.com/sgbaird/honegumi/tree/dev/docs/pyscript-examples Given the project context, does this seem like a reasonable approach to begin with? I'll try to loop back with a better summary of what I've already tried and the resources for it, but I've been stuck on it for a while. Related: Would https://github.com/mudream4869/pyscript-local-package#files be suitable in combination with a GitHub Actions step to commit the wheel based on each commit to main? It seems like this would bloat the repo size a fair bit. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Perhaps this is what I need (reversing order): https://discord.com/channels/972017612454232116/972020206538997822/1301811276862722068 https://pyscript.com/@laffra/ltk-on-micropython/latest?files=main.py,pyscript.toml |
Beta Was this translation helpful? Give feedback.
I pivoted to using remote files because the number was low and it seemed like an easy way to point to "latest". This would always point to
main
, which might make it a bit tricky to test while working on separate branches or trying to build docs locally, but not a huge blocker atm.First, I was hoping for a spot check to see if this was a reasonable approach to using code within a
src
directory hosted on GitHub.Second, I was having trouble with getting remote files to be recognized at all. The LTK example helped a lot, and I was able to track down two critical differences, described above: