Skip to content

Commit 19af3ce

Browse files
author
Gordon Shotwell
committed
Talk Python updates
1 parent 5c8419d commit 19af3ce

File tree

7 files changed

+24
-20
lines changed

7 files changed

+24
-20
lines changed

exercises/1-hello-world.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: "Hello Shiny"
33
---
44

5+
These exercises should be done after Chapter 2 of the course.
6+
57
```{python}
68
# | echo: false
79
import os

exercises/2-basic-ui.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Basic UI"
33
---
4-
4+
These exercises should be done after Chapter 3 of the course.
55
```{python}
66
# | echo: false
77
import os

exercises/3-reactivity.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Reactivity"
33
---
4-
4+
These exercises should be done after Chapter 4 of the course.
55
```{python}
66
# | echo: false
77
import os

exercises/4-dynamic-ui.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Dynamic UI"
33
---
4-
4+
These exercises should be done after Chapter 5 of the course.
55
```{python}
66
# | echo: false
77
import os

exercises/5-reactive-effect.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Reactive Effects"
33
---
4-
4+
These exercises should be done after Chapter 6 of the course.
55
```{python}
66
# | echo: false
77
import os

index.qmd

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
---
2-
title: "Shiny for Python Workshop"
2+
title: "Reactive Web Dashboards with Shiny"
33
---
44

5-
::: callout-warning
6-
This website is under active development and will be unstable.
7-
:::
5+
# Web applications without the headaches
86

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.
1010

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.
1217

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
1718

1819
# Setup
1920

2021
There are two ways to work through the examples and exercises in this workshop.
2122

2223
## 1) In your web browser with Shinylive
2324

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.
2627

2728
## 2) Locally with VS Code
2829

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:
3031

3132
1) Install [VS Code](https://code.visualstudio.com/)
3233
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: \
3435
![](images/git-download-button.png){width="287"}
3536
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`
3738
6) Open a new terminal prompt, which should switch to `(.venv)`
3839
7) Install the relevant packages with `pip install -r requirements.txt`
3940

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ shiny
22
shinylive
33
pandas
44
plotnine
5-
seaborn
5+
seaborn
6+
jupyter

0 commit comments

Comments
 (0)