Skip to content

Commit

Permalink
fix(pr): preview url
Browse files Browse the repository at this point in the history
  • Loading branch information
owilliams320 committed May 17, 2024
1 parent 1932a02 commit ab84417
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ When you create a new notebook instance, you can specify a startup script. This
- Create a bucket with a name relevant to the project (e.g., teradata_jupyter).
- Ensure that the bucket name is globally unique. For instance, if the name teradata_jupyter has already been used, it will not be available for subsequent users.

![New bucket](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/bucket.PNG)
![New bucket](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/bucket.png)

* Upload the unizzped Jupyter extension package to your Google Cloud Storage bucket as a file.

Expand Down Expand Up @@ -74,7 +74,7 @@ su - jupyter -c "git clone https://github.com/Teradata/lake-demos.git"
```
* Upload this script to your Google Cloud storage bucket as a file

![files uploaded to bucket](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/upload.PNG)
![files uploaded to bucket](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/upload.png)

### Initiating a user managed notebook instance

Expand All @@ -85,23 +85,23 @@ su - jupyter -c "git clone https://github.com/Teradata/lake-demos.git"

* Under Details, name your notebook, select your region and select continue.

![notebook env details](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/detailsenv.PNG)
![notebook env details](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/detailsenv.png)

* Under Environment select **Browse** to select your startup.sh script from your Google Cloud Bucket.

![select startup script](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/startupscript.PNG)
![select startup script](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/startupscript.png)

* Select Create to initiate the notebook. It may take a few minutes for the notebook creation process to complete. When it is done, click on OPEN JUPYTERLAB.

![active notebook](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/activenotebook.PNG)
![active notebook](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/activenotebook.png)

:::info
You will have to whitelist this IP in your VantageCloud Lake environment to allow the connection. This solution is appropriate in a trial environment. For production environments, a configuration of VPCs, Subnets, and Security Groups might need to be configured and whitelisted.
:::

* On JupyterLab open a notebook with a Python kernel and run the following command for finding your notebook instance IP address.

![python3 kernel](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/python3.PNG)
![python3 kernel](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/python3.png)

``` python , role="content-editable"
import requests
Expand All @@ -123,11 +123,11 @@ print("My Public IP is:", my_public_ip)
## Edit vars.json
Navigate into the `lake-demos` directory in your notebook.

![notebook launcher](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/notebooklauncher.PNG)
![notebook launcher](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/notebooklauncher.png)

Right click on vars.json to open the file with editor.

![vars.json](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/openvars.PNG)
![vars.json](./images/vantage-lake-demo-jupyter-google-cloud-vertex-ai/openvars.png)

Edit the *[vars.json file](https://github.com/Teradata/lake-demos/blob/main/vars.json)* file to include the required credentials to run the demos +

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In this section we will cover in detail each of the steps below:
* Default options are appropiate for this bucket
* In the created bucket upload the Teradata modules for Jupyter

![Load modules in S3 bucket](./images/vantagecloud-lake-demo-jupyter-sagemaker/sagemaker-bucket-upload.PNG)
![Load modules in S3 bucket](./images/vantagecloud-lake-demo-jupyter-sagemaker/sagemaker-bucket-upload.png)

### Create an IAM role for your Jupyter Notebooks instance
* On SageMaker navigate to the role manager
Expand Down

0 comments on commit ab84417

Please sign in to comment.