|
1 | 1 | ---
|
2 |
| -title: "Shiny for Python Workshop" |
| 2 | +title: "Reactive Web Dashboards with Shiny" |
3 | 3 | ---
|
4 | 4 |
|
5 |
| -::: callout-warning |
6 |
| -This website is under active development and will be unstable. |
7 |
| -::: |
| 5 | +# Web applications without the headaches |
8 | 6 |
|
9 |
| -# Background |
| 7 | +Shiny lets you build beautiful, performant dashboards and web applications without a lot of effort. |
| 8 | +Instead of manually managing callback functions and application state, Shiny uses a reactive framework to automatically determine the best way to run your application. |
| 9 | +This means that you can focus on communicating insights rather than debugging your web application. |
10 | 10 |
|
11 |
| -This workshop is aimed at people who are somewhat familiar with doing data analysis in Python, but do not have much of a background in Shiny. If you are brand new to Python we recommend spending a bit of time familiarizing yourself with the following topics before the workshop: |
| 11 | +This site is a companion to the [Talk Python video course](https://training.talkpython.fm/purchase/access_code/f3180ced-3d5c-42ad-a318-e81e6355a4fd), and provides some exercises that let you practice what you learned in the videos. |
| 12 | + |
| 13 | +# Who is this course for? |
| 14 | + |
| 15 | +This course assumes that you have a basic understanding of Python, but does not require any knowledge of web applications, JavaScript, or HTML. |
| 16 | +If you can read a CSV, manipulate data, and draw a plot in Python, then you have everything you need to start building a Shiny application. |
12 | 17 |
|
13 |
| -- How to install Python packages in a virtual environment |
14 |
| -- How to do basic data manipulation with pandas or polars |
15 |
| -- How to draw plots |
16 |
| -- How to clone a repository with git |
17 | 18 |
|
18 | 19 | # Setup
|
19 | 20 |
|
20 | 21 | There are two ways to work through the examples and exercises in this workshop.
|
21 | 22 |
|
22 | 23 | ## 1) In your web browser with Shinylive
|
23 | 24 |
|
24 |
| -Shinylive allows you to run full-featured shiny apps in your browser, and includes a basic editor which is good enough to run examples. |
25 |
| -As a result you should be able to work through all of the examples in the workshop using just the browser without installing anything locally. |
| 25 | +Shinylive allows you to run full-featured Shiny apps in your browser, and includes a basic editor that is good enough to run examples. |
| 26 | +As a result, you should be able to work through all of the examples in the workshop using just the browser without installing anything locally. |
26 | 27 |
|
27 | 28 | ## 2) Locally with VS Code
|
28 | 29 |
|
29 |
| -While Shinylive is great, it likely isn't the environment you'll use to develop Shiny apps, and so it makes sense to set up VS Code and run the examples locally. To do this follow these steps before the workshop: |
| 30 | +While Shinylive is great, it likely isn't the environment you'll use to develop Shiny apps, and so it makes sense to set up VS Code and run the examples locally. To do this, follow these steps before the workshop: |
30 | 31 |
|
31 | 32 | 1) Install [VS Code](https://code.visualstudio.com/)
|
32 | 33 | 2) Install the Shiny for Python [VS Code extension](https://marketplace.visualstudio.com/items?itemName=posit.shiny-python)
|
33 |
| -3) Clone the repository with `git clone https://github.com/rstudio/shiny-python-workshop-2023.git`, or alternately download the repository as a zip file: \ |
| 34 | +3) Clone the repository with `git clone https://github.com/talkpython/reactive-web-dashboards-with-shiny-course.git`, or alternately download the repository as a zip file: \ |
34 | 35 | {width="287"}
|
35 | 36 | 4) Navigate to the project directory and create a new virtual environment with `python3 -m venv .venv`
|
36 |
| -5) Set your python interpreter to the virtual environment with `CMD + SHIFT + P` \> `Select Interpreter` |
| 37 | +5) Set your Python interpreter to the virtual environment with `CMD + SHIFT + P` > `Select Interpreter` |
37 | 38 | 6) Open a new terminal prompt, which should switch to `(.venv)`
|
38 | 39 | 7) Install the relevant packages with `pip install -r requirements.txt`
|
39 | 40 |
|
|
0 commit comments