From 27b7dd7ccf51c8f833cacd6afea47ebbe81d92a2 Mon Sep 17 00:00:00 2001 From: gccgdb1234 Date: Thu, 15 Sep 2022 13:03:45 +0800 Subject: [PATCH] doc: add jupyter --- .../en/15-programming/01-connect/01-python.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/en/15-programming/01-connect/01-python.md b/docs/en/15-programming/01-connect/01-python.md index 7f23d93e92..24d3cd1647 100644 --- a/docs/en/15-programming/01-connect/01-python.md +++ b/docs/en/15-programming/01-connect/01-python.md @@ -28,6 +28,17 @@ You'll need to have Python3 installed. conda install -c conda-forge taospy ``` + + + +For the users who are familiar with Jupyter to program in Python, both TDengine Python connector and Jupyter need to be ready in your environment. + +```bash +pip install jupyterlab +pip install notebook +pip3 install -U taospy +``` + @@ -59,6 +70,17 @@ $env:TDENGINE_CLOUD_TOKEN="" $env:TDENGINE_CLOUD_URL="" ``` + + + +In order for Jupyter to connect to TDengine cloud service, before launching Jupypter, the environment setting must be performed. We use Linux bash as example. + +```bash +export TDENGINE_CLOUD_TOKEN="" +export TDENGINE_CLOUD_URL="" +jupyter notebook +``` + -- GitLab