Skip to content

πŸ“š A collection of Jupyter notebooks for learning and experimenting with OpenVINO πŸ‘“

License

Notifications You must be signed in to change notification settings

LucasSte/openvino_notebooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š OpenVINO Notebooks

NOTE: The notebooks are currently in beta. We plan to publish a stable release this summer. You can submit issues on GitHub and join our developer Discord* to get updates. We look forward to hearing from you!

A collection of ready-to-run Python* notebooks for learning and experimenting with OpenVINO developer tools. The notebooks are meant to provide an introduction to OpenVINO basics and teach developers how to leverage our APIs for optimized deep learning inference in their applications.

Getting Started

The notebooks are designed to run almost anywhere β€” on your laptop, a cloud VM, or a Docker container. Here's what you need to get started:

  • CPU (64-bit)
  • Windows*, Linux* or macOS*
  • Python*

Before you proceed to the Installation Guide, please check the detailed System Requirements below.

System Requirements

NOTE: Python 3.8 with Linux is not supported yet. If you wish to run the notebooks on Ubuntu 20.04, please see our guide for installing Python 3.7 on Ubuntu 20.04.

The table below lists the supported operating systems and Python versions required to run the OpenVINO notebooks.

Supported Operating System Python* Version (64-bit)
Ubuntu* 18.04 LTS, 64-bit 3.6, 3.7
Ubuntu* 20.04 LTS, 64-bit 3.6, 3.7
Red Hat* Enterprise Linux* 8.2, 64-bit 3.6, 3.7
CentOS* 7.4, 64-bit 3.6, 3.7
macOS* 10.15.x versions 3.6, 3.7, 3.8
Windows 10*, 64-bit Pro, Enterprise or Education editions 3.6, 3.7, 3.8
Windows Server* 2016 or higher 3.6, 3.7, 3.8

Installation Guide

Step 1: Clone the Repository

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

Step 2: Create a Virtual Environment

# For Linux and macOS you may need to use python3 instead of python
python -m venv openvino_env

Step 3: Activate the Environment

For Linux and macOS:

source openvino_env/bin/activate

For Windows:

openvino_env\Scripts\activate

Step 4: Install the Packages

# Install pip version 20.1.1 to ensure compatibility with all dependencies
python -m pip install --upgrade pip==20.1.1
pip install jupyterlab openvino-dev

Step 5: Install the virtualenv Kernel in Jupyter

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

Step 6: Launch the Notebooks!

# To launch a single notebook
jupyter notebook <notebook_filename>

# To launch all notebooks in Jupyter Lab
jupyter lab

In Jupyter Lab, select a notebook from the file browser using the left sidebar. Each notebook is located in a subdirectory within the notebooks directory.

Troubleshooting

  • On Ubuntu, if you see the error "libpython3.7m.so.1.0: cannot open shared object file: No such object or directory" please install the required package with sudo apt install libpython3.7-dev

  • If you get an ImportError, doublecheck that you installed the kernel in Step 4. If necessary, choose the openvinoenv kernel from the _Kernel->Change Kernel menu)

  • On Linux and macOS you may need to type python3 instead of python when creating your virtual environment

  • You may also need to install pip and/or python-venv (depending on your Linux distribution)

  • On Windows, if you have installed multiple versions of Python, use py -3.7 when creating your virtual environment to specify a supported version (in this case 3.7)

About

πŸ“š A collection of Jupyter notebooks for learning and experimenting with OpenVINO πŸ‘“

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 86.9%
  • Python 10.2%
  • Shell 2.3%
  • JavaScript 0.3%
  • Dockerfile 0.2%
  • Makefile 0.1%