You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.qmd
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ This website is under active development and will be unstable.
8
8
9
9
# Background
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 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:
12
12
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
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
16
- How to clone a repository with git
17
17
18
18
# Setup
@@ -21,24 +21,24 @@ There are two ways to work through the examples and exercises in this workshop.
21
21
22
22
## 1) In your web browser with Shinylive
23
23
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.
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
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.
26
26
27
27
## 2) Locally with VS Code
28
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:
2) Install the Shiny for Python [VS Code extension](https://marketplace.visualstudio.com/items?itemName=posit.shiny-python)
32
+
2) Install the [Shiny extension for VS Code](https://marketplace.visualstudio.com/items?itemName=posit.shiny)
33
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
34
{width="287"}
35
35
4) Navigate to the project directory and create a new virtual environment with `python3 -m venv .venv`
36
36
5) Set your python interpreter to the virtual environment with `CMD + SHIFT + P`\>`Select Interpreter`
37
37
6) Open a new terminal prompt, which should switch to `(.venv)`
38
38
7) Install the relevant packages with `pip install -r requirements.txt`
39
39
40
-
All of the example apps are stored in the `/apps` directory.
41
-
The examples are in `apps/examples` and the problem sets are in `apps/problem-sets`.
42
-
If you've installed the Shiny for Python VS Code extension, you can run any of the apps by opening the `app.py` file and clicking the play button in the top right. ([See screenshot](https://camo.githubusercontent.com/5d947e6dff7d74fd1cf221e79583105c42e4986ae673ce79733ce5edbfdcdda5/68747470733a2f2f7368696e792e7273747564696f2e636f6d2f70792f646f63732f6173736574732f7673636f64652e706e67))
40
+
All of the example apps are stored in the `/apps` directory.
41
+
The examples are in `apps/examples` and the problem sets are in `apps/problem-sets`.
42
+
If you've installed the Shiny extension for VS Code, you can run any of the apps by opening the `app.py` file and clicking the play button in the top right. ([See screenshot](https://camo.githubusercontent.com/5d947e6dff7d74fd1cf221e79583105c42e4986ae673ce79733ce5edbfdcdda5/68747470733a2f2f7368696e792e7273747564696f2e636f6d2f70792f646f63732f6173736574732f7673636f64652e706e67))
43
43
44
-
Alternatively, run them from the command line with `shiny run <path-to-app.py> --reload`.
44
+
Alternatively, run them from the command line with `shiny run <path-to-app.py> --reload`.
0 commit comments