-
Notifications
You must be signed in to change notification settings - Fork 9
/
technical-python.qmd
31 lines (20 loc) · 2.25 KB
/
technical-python.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Technical guidance - Python {#tech-python}
## What programs are required for a computer
To write Python code you will need the [Python program](https://www.python.org/downloads/), an IDE (Integrated Development Environment) like [VSCode](https://code.visualstudio.com/) and Python is supported within [RStudio](https://posit.co/download/rstudio-desktop/) (including in Quarto scripts).
Installing Python will require admin rights for the person installing it.
To check that Python has been installed (on Windows) open the Command Prompt (accessed via the Windows button on the keyboard on a Windows computer) and type `py --version`.
### Installing the Python extension to VS Code
The following is a step by step guide from Microsoft: <https://learn.microsoft.com/en-gb/training/modules/python-install-vscode/5-exercise-install-python-extension?pivots=windows>.
The next page in the learning module is a good introduction to creating a folder and a python file which can be run <https://learn.microsoft.com/en-gb/training/modules/python-install-vscode/6-exercise-first-application?pivots=windows>
:::{.callout-tip collapse=false appearance='default' icon=true}
## Command line code
The default location for the folder is in `C:/Users/my.name` so a few commands can be useful for the Terminal:
- `cd` means change directory
- `cd ..` moves the folder up one level
- `cd folder-name` moves to a sub folder where there are no spaces in the name
- `cd 'folder name'` moves to a sub folder where there are spaces in the name
- `dir` means directory and will show all the folders and files
:::
## Useful resources
The Digital Technology Assessment Criteria for Health and Social Care [(DTAC) for JupyterHub](https://www.linkedin.com/feed/update/urn:li:activity:7247179393335193602/?originTrackingId=ktTpD0p2Tz6vRt7H6GTogw%3D%3D) from [South West Analytics & Infrastructure in Healthcare](https://www.linkedin.com/company/swaih/about/) shared on LinkedIn.
The Digital Technology Assessment Criteria for Health and Social Care [(DTAC) for Python](https://www.linkedin.com/feed/update/urn:li:activity:7247179090808438784/?originTrackingId=T%2B3IdsxgS0isgVbrQckHtg%3D%3D) from [South West Analytics & Infrastructure in Healthcare](https://www.linkedin.com/company/swaih/about/) shared on LinkedIn.