Skip to content

Commit a4342ea

Browse files
fix: InitalizeClient code snippet for python first mile (#4401)
1 parent 9ffe9bb commit a4342ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/homepageExperience/components/steps/python/InitalizeClient.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export const InitalizeClient = () => {
1818
const url =
1919
me.quartzMe?.clusterHost || 'https://us-west-2-1.aws.cloud2.influxdata.com/'
2020

21-
const pythonCode = `import os
21+
const pythonCode = `import influxdb_client, os, time
2222
from influxdb_client import InfluxDBClient, Point, WritePrecision
23-
from influxdb_client.client import SYNCHRONOUS
23+
from influxdb_client.client.write_api import SYNCHRONOUS
2424
2525
token = os.environ.get("INFLUXDB_TOKEN")
2626
org = "${org.name}"

0 commit comments

Comments
 (0)