-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: Add shinylive url
command
#20
Conversation
Using the "newline trick" (if it has newlines it's source code, not a path)
Co-authored-by: Winston Chang <[email protected]>
c6fc291
to
373f639
Compare
Thank you for your comments and suggestions @wch, they were super helpful! I've addressed and resolved them all, except for two bigger items that I'll call out because they might be hard to find in the UI above.
|
by detecting language earlier in aggregate processes
a818f29
to
6674c6b
Compare
I've figured out the issue with
It took a bit of exploration, but I've come up with what I think is a pretty good solution:
|
For the I had forgotten that that |
@wch Did you see my last comment above? (I know there's a lot going on in this PR its easy to miss.) In short, it's not about |
Wait, do you mean the |
Yeah, we hadn't added |
Hm, it's strange that the same thing happened with |
@wch What's different about __version__ = "0.6.1.9000" Here in |
Ah, OK, I see. That sounds good then. Can you you rename |
Adds
shinylive url
, a command group toencode
(or create) a shinylive.io URL for Python or R apps from local files ordecode
the existing URL. The core functionality is wrapped inencode_shinylive_url()
anddecode_shinylive_url()
which are exported to facilitate creating and decoding shinylive URLs from within a Python session (the primary use case is for the Component and Layout galleries, but I'm sure this would be broadly useful).Examples
Copy the multiple files Python app example link:
Copy this example Shiny app
and then generate a link and open it on shinylive
Try the same idea, but with this R app
Or apply the same idea to a local app on your computer. In this case, the language is inferred from the file extension.