Shiny - VS Code ExtensionThis is an extension to help launch Shiny applications. Shiny is a package for Python and R that is designed to make it easy to build interactive web applications with the powerful data and scientific features of Python and R. FeaturesRun and Debug Shiny AppsThe main features of this extension are additional options in the Run button menu when editing an It also provides a couple of code snippets in both Python and R:
For a complete Shiny for Python experience in VS Code, please visit our docs for more information, including instructions for configuring the type checker and debugger for use with Shiny. ShinyliveYou can use the extension to create shareable links to your apps using Shinylive, a free service for sharing Shiny apps via static hosting. Shinylive links encode the app's code and data in the URL, so you can share your app with others without needing to deploy it to a server. When the link is opened, the app runs in the user's browser using special version of Python or R that can run in the browser. To create a Shinylive link from your app, you have two choices:
The Shiny extension will ask you which app mode you want to use (display the app or show an editor next to the app) and what action to take (to open or copy the link).You can also configure these options in the extension settings. For the reverse operation, use the Save App from Shinylive Link command in the command palette to save an app and its files from a Shinylive link. You'll be prompted to paste the Shinylive link and then to choose where the app will be saved in your workspace. Extension SettingsThis extension contributes the following settings for Python and R. Python
Note that there is no setting for Python executable path or virtual environment. This extension uses whatever Python environment the VS Code Python extension thinks is active. If you find that the "Run Shiny App" and "Debug Shiny App" commands are launching with a different version of Python or different virtual environment than you intended, use the Python extension's Select Interpreter command to change it. R
Shinylive
|