Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Cogram brings intuitive coding with natural language to Jupyter Notebook.
Documentation | |
---|---|
🚀️ Sign up | Sign up to get your API token and get started! |
⭐️ How to | New to Cogram? Check out our videos! |
📚 Community | Have questions our comments? Join our Slack! |
The easiest way to install Cogram for Jupyter Notebook is using pip.
pip install -U jupyter-cogram
jupyter nbextension enable jupyter-cogram/main
Next, you should install your API token available on your My Account page. Install it with
python -m jupyter_cogram --token YOUR_TOKEN
That's it! You can now start a new Jupyter Notebook server with
jupyter notebook
and you're ready to go!
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
To remove Cogram from your system, simply use pip:
pip uninstall jupyter-cogram
Finally, remove Cogram from the list of extensions Jupyter will load when you start a Notebook:
jupyter nbextension disable jupyter-cogram/main
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. If this happens, paste the API token from your My Account page into the prompt box that opens when you start a new Jupyter Notebook.
The Cogram extension is on by default. You can toggle the extension off and on by clicking the Cogram button () in the toolbar of your Jupyter Notebook. The green circle indicates that Cogram is on.
You can use Cogram in two ways:
The status light will turn orange indicating that Cogram is busy.
For example, writing the comment
# fibonacci sequence
and hitting the Tab key will generate a function that produces the Fibonacci sequence.
Alternatively, writing the code
def fibonacci
and hitting the Tab key will complete the function to 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 with the Tab key.
Cogram works especially well if you give it some context. Cogram knows the code in your notebook above the current position of your cursor. The more code you've already written, the better Cogram will work.
For help with Cogram please join our support channel in community.
FAQs
Intuitive coding for Jupyter Notebook using natural language.
We found that jupyter-cogram demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.