Rob02
SSolara
•Created by Rob02 on 3/26/2024 in #questions-issues
Multiple different solara apps under Fastapi endpoints?
I hadnt seen this, thanks.
I just want to be able to quickly test different solara apps (or versions of the same) on different endpoints. I think one could put them under pages/ in a multipage app and then access the pages directly.
I.e. https://solara.dev/apps/multipage/page1 and https://solara.dev/apps/multipage/page2 but this will give someone access to all pages.
4 replies
SSolara
•Created by Rob02 on 2/23/2024 in #questions-issues
Ipyreactplayer not working in Solara - New Try
I fixed it. I think running solara server from outside the
pages
folder will not be able to find the template looking at
https://github.com/widgetti/solara/blob/master/solara/server/server.py#L42
I think there is no need for a "better" fix as Vimeo is only a small part of reactplayer. Ill just update the solara example in the ipyreactplayer repository to run from a folder with the right structure instead of a notebook and make sure to mention the issue in the example10 replies
SSolara
•Created by Rob02 on 2/23/2024 in #questions-issues
Ipyreactplayer not working in Solara - New Try
I had a look and i think the best solution is to use a custom template that loads the vimeo api in the beginning. I moved the Videoplayer code from a notebook into a Python file and solara component. I've used the directory structure:
Where the template contains this code
But it seems to have no affect when in run
solara run .
Just to make sure, if i provide a file in templates/index.html.j2
solara run finds it automatically or do i need to provide further instructions?10 replies
SSolara
•Created by Rob02 on 2/23/2024 in #questions-issues
Ipyreactplayer not working in Solara - New Try
Nice! Thanks Maarten, Ill have a closer look.
10 replies