Skip to main content

Intuitive coding for Jupyter Notebook using natural language.

Project description

Cogram: Intuitive coding with natural language

Cogram brings intuitive coding with natural language to Jupyter Notebook.

pypi Version Cogram on Slack

📖 Documentation

Documentation
🚀️ Sign up Sign up to get your API token and get started!
⭐️ How to New to Cogram? Check out our videos on how to get started!
📚 Community Have questions our comments? Join our Slack!

Features

  • AI-powered coding for Jupyter Notebooks
  • Supports Python: ideal for data science tasks
  • Cycle through different suggestions

⏳ Install cogram

Requirements

  • API token: If you don't have one yet, sign up
  • Operating system: macOS · Linux · Windows
  • Python version: Python 3.6+ (only 64 bit)
  • Package managers: pip

Installation

The easiest way to install Cogram for Jupyter Notebook is using pip.

pip install -U jupyter-cogram
jupyter nbextension enable jupyter-cogram/main

You can now start a new Jupyter Notebook server with

jupyter notebook

and you're ready to go!

Updating Cogram

The easiest way to upgrade to a new version of Cogram is using pip:

pip install -U jupyter-cogram

You'll then have to kill any active Jupyter Notebook servers and start a new one with

jupyter notebook

📚 Use Cogram

🛫 First start

Once you've installed Cogram and open a Jupyter Notebook for the first time, you'll be asked for your API token (you can find that under My Account).

On first start, paste your API token into the prompt box. You can toggle the extension off and on by clicking the Cogram button () in the toolbar. The green circle indicates that Cogram is active.

🔮 Prompting Cogram

You can prompt Cogram by writing a comment into a code cell starting with ##. You finish off the prompt by typing ## again. The status light will turn orange , indicating that Cogram is busy.

For example, the prompt

## fibonacci sequence ##

will generate different functions that produce the Fibonacci sequence.

Once your code has been generated, you can explore different options with the ← and → keys. If you're happy with a suggestion, you can accept it by waiting for two seconds. Alternatively, you can accept it right away by hitting ⌘+⏎ (macOS) or Ctrl+⏎ (Windows & Linux).

Project details


Release history Release notifications | RSS feed

This version

0.3.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-cogram-0.3.6.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

jupyter_cogram-0.3.6-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-cogram-0.3.6.tar.gz.

File metadata

  • Download URL: jupyter-cogram-0.3.6.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for jupyter-cogram-0.3.6.tar.gz
Algorithm Hash digest
SHA256 672298142165bdeea15d1fbd2197c8d5a89ce885dce5e4d61d5315081776c2c7
MD5 8ceaebb11a947ddaf572d61b18513ec6
BLAKE2b-256 d81fadcb5acc870e3e6d36a72bb8aa082872754346eb54ae11e32ef0207d6d1a

See more details on using hashes here.

File details

Details for the file jupyter_cogram-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: jupyter_cogram-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for jupyter_cogram-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5bc70a01eb071bea1bfae48777e78afce8e4186dae54c89c18d530226767ba3f
MD5 e2575028a846dea2b08530cae59c0109
BLAKE2b-256 3bb05e6bb405c7a92e146b4dde7d78022136a6e77d6bdbb487891e41ef48308a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page