Call Python code directly from Google Sheets™. Easily develop your code using the built in editor. Use any third party libraries.
Listing updated:April 23, 2024
Works with:
5K+
Overview
Neptyne: Python for Sheets™ lets you extend the functionality of spreadsheets by writing your own Python functions in an integrated editor and REPL. With the power of Python, you can easily import data from the web, implement your own custom formulas, and leverage the power of the vast ecosystem of Python packages.

Quickstart Tutorial:
- Install the extension on this page.
- Open a new Google Sheet™ and declare and in the top bar click Extensions > Neptyne > Show code editor
- Implement a python function in the top code editor. For example:
def hello(to_who):
    return "hello " + to_who
- Set A1 to: world
- Set A2 to: =PY(“hello”, A1)
- Change the value of A1 and notice that A2 updates!

Neptyne Editor
- The top part of the Neptyne sidebar, the editor, is evaluated every time your code changes.
- You must declare any functions you create in the editor.

Neptyne REPL
- The bottom part of the sidebar is a Python REPL.
- The REPL can be used to run Python expressions and to test and debug your Python code.

Integrating with the Sheet
- Neptyne automatically creates a PY formula which lets you call your Python functions from the sheet.
- Usage: =PY(“function_name”, param1, …)

PyPI Packages:
- Neptyne ships with the python packages most useful for data analysis so you’ll have direct access to pandas, numpy, requests, scikit-learn and even openai.
- To install a new package, click Extensions > Neptyne > Python Package Management
- Any packages entered 


Additional information
PricingFree of charge with paid features
Privacy policy
Terms of service
Neptyne: Python for Sheets™ will ask for the permissions shown below. Learn more
Neptyne: Python for Sheets™ will need access to your Google account
This will allow Neptyne: Python for Sheets™ to :
View and manage spreadsheets that this application has been installed in
Display and run third-party web content in prompts and sidebars inside Google applications
Connect to an external service
See your primary Google Account email address
See your personal info, including any personal info you've made publicly available
Loading
Search
Clear search
Close search
Google apps
Main menu