Skip to content

Commit 352786c

Browse files
authored
docs: hide windows for desktop installation (#8707)
* hide-windows-desktop * troubleshooting * trailing-space-to-run-ci
1 parent 9f817ca commit 352786c

3 files changed

Lines changed: 48 additions & 74 deletions

File tree

docs/docs/Get-Started/get-started-installation.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ Langflow can be installed in multiple ways:
1616

1717
## Install and run Langflow Desktop
1818

19-
**Langflow Desktop** is a desktop version of Langflow that includes all the features of open source Langflow, with an additional [version management](#manage-your-version-of-langflow-desktop) feature for managing your Langflow version.
20-
21-
<Tabs groupId="os">
22-
<TabItem value="macOS" label="macOS">
19+
**Langflow Desktop** is a desktop version of Langflow that includes all the features of open source Langflow, with an additional [version management](#manage-your-version-of-langflow-desktop) feature for managing your Langflow version. Langflow Desktop is currently available for macOS.
2320

2421
1. Navigate to [Langflow Desktop](https://www.langflow.org/desktop).
2522
2. Click **Download Langflow**, enter your contact information, and then click **Download**.
@@ -28,25 +25,6 @@ Langflow can be installed in multiple ways:
2825

2926
After confirming that Langflow is running, create your first flow with the [Quickstart](/get-started-quickstart).
3027

31-
</TabItem>
32-
<TabItem value="Windows" label="Windows">
33-
34-
1. Navigate to [Langflow Desktop](https://www.langflow.org/desktop).
35-
2. Click **Download Langflow**, enter your contact information, and then click **Download**.
36-
3. Open the **File Explorer**, and then navigate to **Downloads**.
37-
4. Double-click the downloaded `.msi` file, and then use the install wizard to install Langflow Desktop.
38-
39-
:::important
40-
Windows installations of Langflow Desktop require a C++ compiler that may not be present on your system. If you receive a `C++ Build Tools Required!` error, follow the on-screen prompt to install Microsoft C++ Build Tools, or [install Microsoft Visual Studio](https://visualstudio.microsoft.com/downloads/).
41-
:::
42-
43-
5. When the installation completes, open the Langflow application.
44-
45-
After confirming that Langflow is running, create your first flow with the [Quickstart](/get-started-quickstart).
46-
47-
</TabItem>
48-
</Tabs>
49-
5028
### Manage your version of Langflow Desktop
5129

5230
When a new version of Langflow is available, Langflow Desktop displays an upgrade message.

docs/docs/Get-Started/get-started-quickstart.md

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -73,67 +73,67 @@ Langflow provides code snippets to help you get started with the Langflow API.
7373

7474
<Tabs groupId="Language">
7575
<TabItem value="Python" label="Python" default>
76-
76+
7777
```python
7878
import requests
79-
79+
8080
url = "http://LANGFLOW_SERVER_ADDRESS/api/v1/run/FLOW_ID" # The complete API endpoint URL for this flow
81-
81+
8282
# Request payload configuration
8383
payload = {
8484
"output_type": "chat",
8585
"input_type": "chat",
8686
"input_value": "hello world!"
8787
}
88-
88+
8989
# Request headers
9090
headers = {
9191
"Content-Type": "application/json"
9292
}
93-
93+
9494
try:
9595
# Send API request
9696
response = requests.request("POST", url, json=payload, headers=headers)
9797
response.raise_for_status() # Raise exception for bad status codes
98-
98+
9999
# Print response
100100
print(response.text)
101-
101+
102102
except requests.exceptions.RequestException as e:
103103
print(f"Error making API request: {e}")
104104
except ValueError as e:
105105
print(f"Error parsing response: {e}")
106106
```
107-
107+
108108
</TabItem>
109109
<TabItem value="JavaScript" label="JavaScript">
110-
110+
111111
```js
112112
const payload = {
113113
"output_type": "chat",
114114
"input_type": "chat",
115115
"input_value": "hello world!",
116116
"session_id": "user_1"
117117
};
118-
118+
119119
const options = {
120120
method: 'POST',
121121
headers: {
122122
'Content-Type': 'application/json'
123123
},
124124
body: JSON.stringify(payload)
125125
};
126-
126+
127127
fetch('http://LANGFLOW_SERVER_ADDRESS/api/v1/run/FLOW_ID', options)
128128
.then(response => response.json())
129129
.then(response => console.log(response))
130130
.catch(err => console.error(err));
131131
```
132-
132+
133133
</TabItem>
134-
134+
135135
<TabItem value="curl" label="curl">
136-
136+
137137
```text
138138
curl --request POST \
139139
--url 'http://LANGFLOW_SERVER_ADDRESS/api/v1/run/FLOW_ID?stream=false' \
@@ -143,12 +143,12 @@ Langflow provides code snippets to help you get started with the Langflow API.
143143
"input_type": "chat",
144144
"input_value": "hello world!"
145145
}'
146-
146+
147147
# A 200 response confirms the call succeeded.
148148
```
149-
149+
150150
</TabItem>
151-
151+
152152
</Tabs>
153153

154154
2. Copy the snippet, paste it in a script file, and then run the script to send the request.
@@ -339,50 +339,50 @@ This script runs a question-and-answer chat in your terminal and stores the Agen
339339

340340
<Tabs groupId="Languages">
341341
<TabItem value="Python" label="Python" default>
342-
342+
343343
```python
344344
import requests
345345
import json
346-
346+
347347
url = "http://LANGFLOW_SERVER_ADDRESS/api/v1/run/FLOW_ID"
348-
348+
349349
def ask_agent(question):
350350
payload = {
351351
"output_type": "chat",
352352
"input_type": "chat",
353353
"input_value": question,
354354
}
355-
355+
356356
headers = {"Content-Type": "application/json"}
357-
357+
358358
try:
359359
response = requests.post(url, json=payload, headers=headers)
360360
response.raise_for_status()
361-
361+
362362
# Get the response message
363363
data = response.json()
364364
message = data["outputs"][0]["outputs"][0]["outputs"]["message"]["message"]
365365
return message
366-
366+
367367
except Exception as e:
368368
return f"Error: {str(e)}"
369-
369+
370370
def extract_message(data):
371371
try:
372372
return data["outputs"][0]["outputs"][0]["outputs"]["message"]["message"]
373373
except (KeyError, IndexError):
374374
return None
375-
375+
376376
# Store the previous answer from ask_agent response
377377
previous_answer = None
378-
378+
379379
# the terminal chat
380380
while True:
381381
# Get user input
382382
print("\nAsk the agent anything, such as 'What is 15 * 7?' or 'What is the capital of France?')")
383383
print("Type 'quit' to exit or 'compare' to see the previous answer")
384384
user_question = input("Your question: ")
385-
385+
386386
if user_question.lower() == 'quit':
387387
break
388388
elif user_question.lower() == 'compare':
@@ -391,70 +391,70 @@ This script runs a question-and-answer chat in your terminal and stores the Agen
391391
else:
392392
print("\nNo previous answer to compare with!")
393393
continue
394-
394+
395395
# Get and display the answer
396396
result = ask_agent(user_question)
397-
print(f"\nAgent's answer: {result}")
397+
print(f"\nAgent's answer: {result}")
398398
# Store the answer for comparison
399399
previous_answer = result
400400
```
401-
401+
402402
</TabItem>
403403
<TabItem value="JavaScript" label="JavaScript">
404-
404+
405405
```js
406406
const readline = require('readline');
407-
407+
408408
const rl = readline.createInterface({
409409
input: process.stdin,
410410
output: process.stdout
411411
});
412-
412+
413413
const url = 'http://LANGFLOW_SERVER_ADDRESS/api/v1/run/FLOW_ID';
414-
414+
415415
// Store the previous answer from askAgent response
416416
let previousAnswer = null;
417-
417+
418418
// the agent flow, with question as input_value
419419
async function askAgent(question) {
420420
const payload = {
421421
"output_type": "chat",
422422
"input_type": "chat",
423423
"input_value": question
424424
};
425-
425+
426426
const options = {
427427
method: 'POST',
428428
headers: {
429429
'Content-Type': 'application/json'
430430
},
431431
body: JSON.stringify(payload)
432432
};
433-
433+
434434
try {
435435
const response = await fetch(url, options);
436436
const data = await response.json();
437-
437+
438438
// Extract the message from the nested response
439439
const message = data.outputs[0].outputs[0].outputs.message.message;
440440
return message;
441441
} catch (error) {
442442
return `Error: ${error.message}`;
443443
}
444444
}
445-
445+
446446
// the terminal chat
447447
async function startChat() {
448448
console.log("\nAsk the agent anything, such as 'What is 15 * 7?' or 'What is the capital of France?'");
449449
console.log("Type 'quit' to exit or 'compare' to see the previous answer");
450-
450+
451451
const askQuestion = () => {
452452
rl.question('\nYour question: ', async (userQuestion) => {
453453
if (userQuestion.toLowerCase() === 'quit') {
454454
rl.close();
455455
return;
456456
}
457-
457+
458458
if (userQuestion.toLowerCase() === 'compare') {
459459
if (previousAnswer) {
460460
console.log(`\nPrevious answer was: ${previousAnswer}`);
@@ -464,20 +464,20 @@ This script runs a question-and-answer chat in your terminal and stores the Agen
464464
askQuestion();
465465
return;
466466
}
467-
467+
468468
const result = await askAgent(userQuestion);
469469
console.log(`\nAgent's answer: ${result}`);
470470
previousAnswer = result;
471471
askQuestion();
472472
});
473473
};
474-
474+
475475
askQuestion();
476476
}
477-
477+
478478
startChat();
479479
```
480-
480+
481481
</TabItem>
482482
</Tabs>
483483

@@ -518,4 +518,4 @@ payload = {
518518
## Next steps
519519

520520
* [Model Context Protocol (MCP) servers](/mcp-server)
521-
* [Langflow deployment overview](/deployment-overview)
521+
* [Langflow deployment overview](/deployment-overview)

docs/docs/Support/troubleshooting.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ If you get an API key error when running a flow, try the following:
3434

3535
The following issues can occur when installing Langflow.
3636

37-
### C++ build tools required for Langflow Desktop on Windows
38-
39-
Microsoft Windows installations of Langflow Desktop require a C++ compiler that may not be present on your system. If you receive a `C++ Build Tools Required!` error, follow the on-screen prompt to install Microsoft C++ Build Tools, or [install Microsoft Visual Studio](https://visualstudio.microsoft.com/downloads/).
40-
4137
### Langflow installation freezes at pip dependency resolution
4238

4339
Installing Langflow OSS with `pip install langflow` slowly fails with this error message:

0 commit comments

Comments
 (0)