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.
📖 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 at My Account. 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).
📚 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
Built Distribution
Hashes for jupyter_cogram-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d83b8b85f88003572d98d1022d4e0ac4cda921522d587e98bf8447332114dd |
|
MD5 | a4d953e5c2cfc8e65a2afaa2d6fd01af |
|
BLAKE2b-256 | 76f4017b7ecd44ce30733661037978631382d2582418ce1e6e2abe7677bd896e |