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

If you've installed Cogram by following the instructions on your My Account page your API token will automatically be saved. You can open a Jupyter Notebook and get started.

You may be asked for your API token when you open a new Notebook for the first time. You can find your API token on your My Account page. Paste this into the prompt box that opens when you start a new Jupyter Notebook.

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 ##. Submit 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).

💡 Tips for working with Cogram

Cogram works especially well if you give it some context. Cogram knows the cells in your notebook above the cell in which you're prompting Cogram. So the more cells you've already written, the better Cogram will work.

📚 Support

For help with Cogram please join our support channel in community.

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

jupyter-cogram-0.8.0.dev7.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

jupyter_cogram-0.8.0.dev7-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-cogram-0.8.0.dev7.tar.gz.

File metadata

  • Download URL: jupyter-cogram-0.8.0.dev7.tar.gz
  • Upload date:
  • Size: 24.2 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.3 CPython/3.9.7

File hashes

Hashes for jupyter-cogram-0.8.0.dev7.tar.gz
Algorithm Hash digest
SHA256 72da72ecb0c0fbe6353db384c67f9029a74a3f62ed6a02b9412825c24bac642a
MD5 64db10af3f3ddf07cef60cf2eba17578
BLAKE2b-256 e3e4827107e1a780bd96d5f1fd9306a84b57be98630188a10d6335b88230bcb1

See more details on using hashes here.

File details

Details for the file jupyter_cogram-0.8.0.dev7-py3-none-any.whl.

File metadata

  • Download URL: jupyter_cogram-0.8.0.dev7-py3-none-any.whl
  • Upload date:
  • Size: 47.9 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.3 CPython/3.9.7

File hashes

Hashes for jupyter_cogram-0.8.0.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 dac569e6d5a8a489e09547957924088969f086f63c604051d65ccb1e3aedeea9
MD5 7cefa883c8e7d439fb33d7d977618186
BLAKE2b-256 d017f358e3d6699d9f88a9d1a82565d522ded7fe3f22459c9d01053318279ccb

See more details on using hashes here.

Supported by

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