

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 前提条件
<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 以降）。
+ AWS Command Line Interface(AWS CLI) のインストール – 詳細については、「」を参照してください[のセットアップAWS CLI](setting-up-the-aws-cli.md)。
+ AWS Jupyter プロキシのインストール (`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
```