@@ -13,7 +13,7 @@ import TabItem from '@theme/TabItem';
...
@@ -13,7 +13,7 @@ import TabItem from '@theme/TabItem';
First, you need to install the `taospy` module version >= `2.6.2`. Run the command below in your terminal.
First, you need to install the `taospy` module version >= `2.6.2`. Run the command below in your terminal.
<TabsdefaultValue="pip">
<TabsdefaultValue="pip"groupID="package">
<TabItemvalue="pip"label="pip">
<TabItemvalue="pip"label="pip">
```
```
...
@@ -90,14 +90,29 @@ For more details about how to write or query data via REST API, please check [RE
...
@@ -90,14 +90,29 @@ For more details about how to write or query data via REST API, please check [RE
**Step 1: Install**
**Step 1: Install**
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. If you have not done yet, please use below commands to install them.
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. If you have not done yet, please use the commands below to install them.
<TabsdefaultValue="pip"groupID="package">
<TabItemvalue="pip"label="pip">
```bash
```bash
pip install jupyterlab
pip install jupyterlab
pip install notebook
pip3 install-U taospy
pip3 install-U taospy
```
```
You'll need to have Python3 installed.
</TabItem>
<TabItemvalue="conda"label="conda">
```
conda install -c conda-forge jupyterlab
conda install -c conda-forge taospy
```
</TabItem>
</Tabs>
**Step 2: Configure**
**Step 2: Configure**
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.
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.
...
@@ -105,12 +120,12 @@ In order for Jupyter to connect to TDengine cloud service, before launching Jupy
...
@@ -105,12 +120,12 @@ In order for Jupyter to connect to TDengine cloud service, before launching Jupy
```bash
```bash
export TDENGINE_CLOUD_TOKEN="<token>"
export TDENGINE_CLOUD_TOKEN="<token>"
export TDENGINE_CLOUD_URL="<url>"
export TDENGINE_CLOUD_URL="<url>"
jupyter notebook
jupyter lab
```
```
**Step 3: Connect**
**Step 3: Connect**
Once jupyter notebook is launched, Jupyter notebook service is automatically connected and shown in your browser. You can create a new Python file and copy the sample code below and run it.
Once jupyter lab is launched, Jupyter lab service is automatically connected and shown in your browser. You can create a new notebook and copy the sample code below and run it.