Skip to content

Commit 09a2e14

Browse files
committed
Update serverless SignalR Python quickstart
- remove extensions install - update to Python 3.7
1 parent 1125d79 commit 09a2e14

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

articles/azure-signalr/signalr-quickstart-azure-functions-python.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: anthonychu
55
ms.service: signalr
66
ms.devlang: python
77
ms.topic: quickstart
8-
ms.date: 08/08/2019
8+
ms.date: 12/14/2019
99
ms.author: antchu
1010
---
1111
# Quickstart: Create a chat room with Azure Functions and SignalR Service using Python
@@ -18,11 +18,9 @@ This quickstart can be run on macOS, Windows, or Linux.
1818

1919
Make sure you have a code editor such as [Visual Studio Code](https://code.visualstudio.com/) installed.
2020

21-
Install the [Azure Functions Core Tools (v2)](https://github.com/Azure/azure-functions-core-tools#installing) (version 2.7.1505 or higher) to run Python Azure Function apps locally.
21+
Install the [Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing) (version 2.7.1505 or higher) to run Python Azure Function apps locally.
2222

23-
Azure Functions requires [Python 3.6](https://www.python.org/downloads/).
24-
25-
In order to install extensions, Azure Functions Core Tools currently require the [.NET Core SDK](https://www.microsoft.com/net/download) installed. However, no knowledge of .NET is required to build Python Azure Function apps.
23+
Azure Functions requires [Python 3.6 or 3.7](https://www.python.org/downloads/).
2624

2725
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2826

@@ -48,19 +46,19 @@ Sign in to the Azure portal at <https://portal.azure.com/> with your Azure accou
4846

4947
1. In your code editor, open the *src/chat/python* folder in the cloned repository.
5048

51-
1. To locally develop and test Python functions, you must work in a Python 3.6 environment. Run the following commands to create and activate a virtual environment named `.venv`.
49+
1. To locally develop and test Python functions, you must work in a Python 3.6 or 3.7 environment. Run the following commands to create and activate a virtual environment named `.venv`.
5250

5351
**Linux or macOS:**
5452

5553
```bash
56-
python3.6 -m venv .venv
54+
python3.7 -m venv .venv
5755
source .venv/bin/activate
5856
```
5957

6058
**Windows:**
6159

6260
```powershell
63-
py -3.6 -m venv .venv
61+
py -3.7 -m venv .venv
6462
.venv\scripts\activate
6563
```
6664

@@ -73,10 +71,10 @@ Sign in to the Azure portal at <https://portal.azure.com/> with your Azure accou
7371
- **negotiate** - Uses the *SignalRConnectionInfo* input binding to generate and return valid connection information.
7472
- **messages** - Receives a chat message in the request body and uses the *SignalR* output binding to broadcast the message to all connected client applications.
7573

76-
1. In the terminal, ensure that you are in the *src/chat/python* folder. Use the Azure Functions Core Tools to install extensions required to run the app.
74+
1. In the terminal with the virtual environment activated, ensure that you are in the *src/chat/python* folder. Install the necessary Python packages using PIP.
7775

7876
```bash
79-
func extensions install
77+
python -m pip install -r requirements.txt
8078
```
8179

8280
1. Run the function app.

0 commit comments

Comments
 (0)