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

Pyodide Conversion: Bundle all the necessary ressources to load from a single webserver #6789

Open
flxmr opened this issue Apr 24, 2024 · 1 comment

Comments

@flxmr
Copy link

flxmr commented Apr 24, 2024

Is your feature request related to a problem? Please describe.

I would like to host all parts of my pyiodide converted panelapp on my own webserver. That means all the wheels are there for micropip and all the JS/CSS necessary for the components I selected. This way I can be sure the thing works as long as WASM/Rendering works without version locking and relying on the availability of CDNs.

Describe the solution you'd like

  • rework the code in panel/command/bundle.py and the *_ressources and inline-options available in convert_app in panel/io/convert.py to reference locally available files
  • download those files
  • add code to download all the wheels from pypi/pyiodide-repo
  • make sure micropip installs those wheels

Describe alternatives you've considered

None

@flxmr flxmr changed the title Pyiodide Conversion: Bundle all the necessary ressources to run from the webseerver Pyiodide Conversion: Bundle all the necessary ressources to load from a single webserver Apr 24, 2024
@philippjfr philippjfr changed the title Pyiodide Conversion: Bundle all the necessary ressources to load from a single webserver Pyodide Conversion: Bundle all the necessary ressources to load from a single webserver Apr 24, 2024
@flxmr
Copy link
Author

flxmr commented Apr 24, 2024

might also solve these things with the solution
#5766 (restructure to have a better api for ressources/...)
#4089 (code restructuring could deal with this)
#6123 (not 100% sure, but this definitely seems to hit on the bundling of ressources?)
#4090 (how are we going to get all the ressources/requirements, when we can't run? → likely one could add a hook on the imports OR just get the import and regex-search for pn.extension)
#5062 this also seems like the necessary rework might handle this

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

No branches or pull requests

1 participant