提交 a804fc3d 编写于 作者: G gccgdb1234

doc: refine jupyter

上级 0cca8852
......@@ -28,17 +28,6 @@ You'll need to have Python3 installed.
conda install -c conda-forge taospy
```
</TabItem>
<TabItem value="jupyter" label="Jupyter">
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
```
</TabItem>
</Tabs>
......@@ -70,17 +59,6 @@ $env:TDENGINE_CLOUD_TOKEN="<token>"
$env:TDENGINE_CLOUD_URL="<url>"
```
</TabItem>
<TabItem value="Jupyter" label="Jupyter">
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="<token>"
export TDENGINE_CLOUD_URL="<url>"
jupyter notebook
```
</TabItem>
</Tabs>
......@@ -106,4 +84,34 @@ Copy code bellow to your editor and run it. If you are using jupyter, assuming y
For how to write data and query data, please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>.
For more details about how to write or query data via REST API, please check [REST API](https://docs.tdengine.com/cloud/programming/connector/rest-api/).
\ No newline at end of file
For more details about how to write or query data via REST API, please check [REST API](https://docs.tdengine.com/cloud/programming/connector/rest-api/).
## Jupyter
**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.
```bash
pip install jupyterlab
pip install notebook
pip3 install -U taospy
```
**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.
```bash
export TDENGINE_CLOUD_TOKEN="<token>"
export TDENGINE_CLOUD_URL="<url>"
jupyter notebook
```
**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.
```python
{{#include docs/examples/python/develop_tutorial.py:connect}}
```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册