Skip to content

AzureML

Ryan Loney edited this page May 7, 2021 · 37 revisions

Step 0: Add a Compute Instance

See instructions to add an Azure compute instance, then pick any CPU-based instance (No GPU required). Once the instance is running, open the terminal and run the steps below.

terminal

Step 1: Deactivate Conda

For OpenVINO Notebooks, we recommend using virtualenv instead of Anaconda

conda deactivate

Step 2: Install python3-venv

sudo apt install python3-venv

Step 3: Change Directory to the Home Folder

cd ~

Step 4: Create a Virtual Environment

python3 -m venv openvino_env

Step 6: Activate the Environment

source openvino_env/bin/activate

Step 7: Change Directory to Users Folder

To access notebooks from the web console, they must be in the Users folder

cd ~/cloudfiles/code/Users

Step 8: Clone OpenVINO Notebooks

git clone https://github.com/openvinotoolkit/openvino_notebooks.git

Step 9: Change Directory to openvino_notebooks

cd openvino_notebooks

Step 10: Install the Packages

# Upgrade pip to the latest version.
# Use pip's legacy dependency resolver to avoid dependency conflicts
python -m pip install --upgrade pip
pip install -r requirements.txt --use-deprecated=legacy-resolver

Step 11: Install the virtualenv Kernel in Jupyter

python -m ipykernel install --user --name openvino_env

Step 12: Run the Notebooks!

To run the notebooks, click on Notebooks and refresh your Files:

refresh

Step 12: Run the Notebooks!

To run the notebooks, click on Notebooks and refresh your Files:

refresh

Select a notebook:

hello-world

Then run all cells:

run