Advance Framework Configuration
New in version 2.0.
Securing a notebook server
The Jupyter notebook web application is based on a server-client structure. This document describes how you can secure a notebook server.
The following scripts don’t take jupyter notebook security into consideration. To properly secure your Jupyter notebook use the guide listed above.
Startup Scripts for Individual Containers
Startup Scripts for Jupyter
-
Create a
datasetdirectory to store all your datasets using Jupyter notebooks. -
Create a startup script and place it in the
homedirectory.
RAPIDS Container
Add the following contents to the startup.sh script created in Startup Scripts for Jupyter section.
Replace /home/nvidia with your home path. Do not use $HOME, this script requires the absolute path.
Example: nvcr.io/nvidia/rapidsai/notebooks:24.08-cuda11.8-py3.9 Container location: https://catalog.ngc.nvidia.com/orgs/nvidia/teams/rapidsai/containers/notebooks
TensorFlow1 Container
Add the following contents to the startup.sh script created in Startup Scripts for Jupyter section.
Replace /home/nvidia with your home path. Do not use $HOME, this script requires the absolute path.
Example: nvcr.io/nvidia/tensorflow:24.09-tf2-py3 Container location: https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorflow/tags
TensorFlow2 Container
Add the following contents to the startup.sh script created in Startup Scripts for Jupyter section.
Replace /home/nvidia with your home path. Do not use $HOME, this script requires the absolute path.
Example: nvcr.io/nvidia/tensorflow:24.09-tf2-py3 Container location: https://catalog.ngc.nvidia.com/orgs/nvidia/containers/tensorflow/tags
PyTorch Container
Add the following contents to the startup.sh script created in Startup Scripts for Jupyter section.
Replace /home/nvidia with your home path. Do not use $HOME, this script requires the absolute path.
Example: nvcr.io/nvidia/pytorch:24.09-py3 Container location: https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch/tags
Combined Startup Script
The script below autostarts Jupyter notebook for all the NVIDIA AI Enterprise containers together on a single system. In this example, Jupyter notebook for PyTorch, TensorFlow1, TensorFlow2 and RAPIDS are started on port 8888, 8889, 8890 and 8891 respectively.
Enabling Startup Script
-
Give execution privileges to the script.
Replace
/home/nvidiawith your home path. Do not use$HOME, this script requires the absolute path. -
Create a systemd process for the startup script.
-
Add the following content to the
jupyter.servicefile. -
Start and enable the startup service on reboot.
-
Reboot the system.
For the Combined Startup Script section you can skip the next step and directly access PyTorch container, TensorFlow-v1, TensorFlow-v2 and RAPIDS Jupyter notebooks at: http://system_IP:8888, http://system_IP:8889, http://system_IP:8890, http://system_IP:8891 respectively.
-
To open the Jupyter Notebook you will need the token/password. This is needed to prevent unauthorized access to a Jupyter Notebook. To access the token, look at the Jupyter service logs using the command below.
-
The logs will display the full URL of the Jupyter Notebook including the token.
-
As an IT Administrator, you need to provide the data scientist with the IP of the system and the token below.
Example:
Startup Scripts for Triton Inference Server
-
Create a
tritondirectory inside the system for the AI Practitioner to host the model. -
Pull the latest Triton Inference Server container.
-
Create a startup script to run Triton Inference Server automatically on system.
-
Add the following content to the
startup.shfile. -
Make the startup script executable.
-
Create a systemd process for startup script.
-
Add the following content to the
triton.servicefile. -
Start and enable the startup service on reboot.
-
Reboot the system.