Helpers for using Pinecone with notebooks
Project description
Pinecone helpers for notebooks
This package contains helper functions for working with Pinecone in the context of a Jupyter or Google Colab notebook.
Google Colab
Authenticate
This helper function displays a widget to allow the user to authenticate with Pinecone. The
resulting API key will be placed in the PINECONE_API_KEY
environment variable.
Usage
To display the authentication widget:
from pinecone_notebooks.colab import Authenticate
Authenticate()
The widget will be displayed for the user to authenticate. Note that any usage of the API key should
take place in a later cell. The user must complete the authentication flow before the
PINECONE_API_KEY
environment variable can be used.
from pinecone import Pinecone
api_key = os.environ.get('PINECONE_API_KEY')
pinecone_client = Pinecone(api_key=api_key)
# ... proceed to use pinecone_client to create indexes, upload data, query, etc.
source_tag
The Authenticate
function has an optional source_tag
parameter. Pinecone partners should set
this value to receive attribution credit for users of their notebooks who signup to Pinecone.
from pinecone_notebooks.colab import Authenticate
Authenticate(source_tag='MyAwesomeApp')
Jupyter
Coming soon!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pinecone_notebooks-0.0.2rc7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d05643254bdfaac81ca692d79dc31584152a751cec5007b9a6d1993779be251d |
|
MD5 | ea3ad4a9180393349bdcfdcef6c164c8 |
|
BLAKE2b-256 | a794dabed1927d28ad8dcea696ef92aca5d8861ef86cd9a9f5c71a6025d2907d |
Hashes for pinecone_notebooks-0.0.2rc7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44965b2427d426d7615fea2931e36306ac617b711ba1e9fd7c03509290a3e278 |
|
MD5 | 94dc54468e9c6d1e09a9697d90866a5c |
|
BLAKE2b-256 | 80589e0ad865589b72b63facdbbef9b0d11423f07ff3859db4fb6a9cfba65e16 |