

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 先決條件
<a name="jupyter-prereqs"></a>

開始之前，請設定下列項目：
+ AWS帳戶 – 如果您還沒有帳戶，請從 開始[設定新AWS帳戶](setting-up-aws.md)。
+ 可存取 DataBrew 所需許可的AWS Identity and Access Management(IAM) 使用者 – 如需詳細資訊，請參閱 [使用 DataBrew 許可新增使用者或群組](setting-up-iam-users-and-groups-for-databrew.md)。
+ 要在 DataBrew 操作中使用的 IAM 角色 – 如果`AwsGlueDataBrewDataAccessRole`已設定 ，您可以使用預設值。若要設定其他 IAM 角色，請參閱 [新增具有資料資源許可的 IAM 角色](setting-up-iam-role-to-use-in-databrew.md)。
+ JupyterLab 安裝 (2.2.6 版或更新版本） – 如需詳細資訊，請參閱 [JupyterLab 文件](https://JupyterLab.readthedocs.io/en/stable/index.html)中的下列主題：
  + [JupyterLab 先決條件](https://JupyterLab.readthedocs.io/en/stable/getting_started/installation.html#prerequisites)
  + [JupyterLab 安裝](https://JupyterLab.readthedocs.io/en/stable/getting_started/installation.html) – 建議使用 `pip install jupyterlab`。
+ Node.js 安裝 (12.0 版或更新版本）。
+ An AWS Command Line Interface(AWS CLI) 安裝 – 如需詳細資訊，請參閱 [設定AWS CLI](setting-up-the-aws-cli.md)。
+ Jupyter AWS代理安裝 (`pip install aws-jupyter-proxy`) – 此延伸項目會與服務AWS端點搭配使用，以安全地傳遞您的AWS登入資料。如需詳細資訊，請參閱 GitHub 上的 [aws-jupyter-proxy](https://github.com/aws/aws-jupyter-proxy)。

若要驗證是否已安裝先決條件，您可以在命令列執行類似下列的測試，如下列範例所示。

```
echo "
AWS CLI:"
which aws
aws --version 
aws configure list
aws sts get-caller-identity

echo "
Python (current environment):"
which python
python --version

echo "
Node.JS:"
which node
node --version 

echo "
Jupyter:"
where jupyter
jupyter --version
jupyter serverextension list
pip3 freeze | grep jupyter
```

輸出看起來應該如下。目錄因作業系統和組態而異。

```
AWS CLI:
/usr/local/bin/aws 
aws-cli/2.1.2 Python/3.7.4 Darwin/19.6.0 exe/x86_64
      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key     ****************VXW4 shared-credentials-file
secret_key     ****************MRJN shared-credentials-file
    region                us-east-1      config-file    ~/.aws/config
{
    "UserId": "",
    "Account": "111122223333",
    "Arn": "arn:aws:iam::111122223333:user/user2"
}

Python (current environment):
/usr/local/opt/python /libexec/bin/python
Python 3.8.5

Node.JS:
/usr/local/bin/node
v15.0.1

Jupyter:
/usr/local/bin/jupyter
jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : 4.7.5
ipython          : 7.16.1
ipykernel        : 5.3.2
jupyter client   : 6.1.6
jupyter lab      : 2.2.9
nbconvert        : 5.6.1
ipywidgets       : 7.5.1
nbformat         : 5.0.7
traitlets        : 4.3.3        

config dir: /usr/local/etc/jupyter
    aws_jupyter_proxy  enabled
    - Validating...
      aws_jupyter_proxy  OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 2.2.9 OK

aws-jupyter-proxy==0.1.0
jupyter-client==6.1.7
jupyter-core==4.7.0
jupyterlab==2.2.9
jupyterlab-pygments==0.1.2
jupyterlab-server==1.2.0
```