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

anywidget not installed #176

Open
gschivley opened this issue Sep 11, 2024 · 3 comments
Open

anywidget not installed #176

gschivley opened this issue Sep 11, 2024 · 3 comments

Comments

@gschivley
Copy link

I'm testing shinylive as an alternative to building static html dashboards that contain Altair charts. It works in the shinylive.io example example I created, and as an app.py file that I can launch via shiny run. But when I create the shinylive file locally or via GitHub actions I always get an error that The Altair JupyterChart requires the anywidget Python package. I have anywidget in the requirements.txt file. Any suggestions?

GitHub repo here.

GitHub page here.

@gschivley
Copy link
Author

Looks like a similar issue was posted to py-shiny. But I have anywidget in my requirements.txt.

@gschivley
Copy link
Author

I was able to get a local version working by copying anywidget and psygnal wheels into my _site/shinylive/pyodide folder and adding them to pyodide-lock.json. I could also launch the page using shiny run app.py on the file _build/app.py. So maybe shinylive.js is never looking at the requirements.txt?

@gschivley
Copy link
Author

Hacking the GitHub action to include the anywidget/psygnal wheels and modify pyodide-lock.json worked. Obviously not an ideal way to deal with the problem though.

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