Installing the Python Client¶
The Python Client is available on the Driverless AI UI and published on the h2oai channel at https://anaconda.org/h2oai/repo.
Installing from Driverless AI¶
- Python 3.6. This is the only supported version.
Download from UI¶
On the Driverless AI top menu, select the RESOURCES > PYTHON CLIENT link. This downloads the h2oai_client wheel.
Download from Command Line¶
The Driverless AI Python client is exposed as the
/clients/py HTTP end point. This can be accessed via the command line:
wget --trust-server-names http://<Driverless AI address>/clients/py
Install this wheel to your local Python via
pip comand. Once installed, you can launch a Jupyter notebook and begin using the Driverless AI Python Client.
Installing from Anaconda Cloud¶
- Conda Package Manager. You can install the Conda Package Manager either through Anaconda or Miniconda. Note that the Driverless AI Python client requires Python 3.6, so ensure that you install the Python 3 version of Anaconda or Miniconda.
After Conda is installed and the Conda executable is available in $PATH, create a new Anaconda environment for h2oai_client:
conda create -n h2oaiclientenv -c h2oai -c conda-forge h2oai_client
The above command installs the latest version of the Python client. Include the version number to install a specific version. For example, the following command installs the 1.6.3 Python client:
conda create -n h2oaiclientenv -c h2oai -c conda-forge h2oai_client=1.6.3
A list of available Python client versions is available here: https://anaconda.org/h2oai/h2oai_client/files
Upon completion, you can launch a Jupyter notebook and begin using the Driverless AI Python Client.