Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pinecone-notebooks

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinecone-notebooks

Helpers for using Pinecone with notebooks

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

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. Once the user authenticates, they are prompted to select the Pinecone organization and project that they want to grant access to. An API key is then generated and set as the environment variable PINECONE_API_KEY.

Usage

To display the authentication widget:

from pinecone_notebooks.colab import Authenticate

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!

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc