https://github.com/ankitchiplunkar/cairo-jupyter
Jupyter kernel for Cairo smart contract language
https://github.com/ankitchiplunkar/cairo-jupyter
Last synced: 2 months ago
JSON representation
Jupyter kernel for Cairo smart contract language
- Host: GitHub
- URL: https://github.com/ankitchiplunkar/cairo-jupyter
- Owner: ankitchiplunkar
- License: mit
- Created: 2021-10-22T10:56:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T23:19:30.000Z (over 3 years ago)
- Last Synced: 2025-03-24T16:11:18.065Z (3 months ago)
- Language: Python
- Size: 78.1 KB
- Stars: 32
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
cairo_jupyter
===========``cairo_jupyter`` hosts notebooks and code for cairo-kernel its a simple Jupyter kernel for Cairo a smart contract programing language for STARKs.
Hosted on binder: [](https://mybinder.org/v2/gh/ankitchiplunkar/cairo-jupyter/HEAD)
Project managenemt: [Kanban](https://ankitchiplunkar.notion.site/Cairo-kernel-starkware-py-5f64ee70cfde4578969c430bf1a14531)
Installation
------------
1. Install virtualenv```
virtualenv -p python3.8 venv
source venv/bin/activate
```2. To install ``cairo_kernel``:
```
# Upgrade to latest version of setuptools and wheel
pip install -U setuptools
pip install -U wheel
pip install cairo-kernel
```Using the Kernel
---------------------[Cairo example](https://github.com/ankitchiplunkar/cairo-jupyter/blob/master/notebooks/Cairo%20example.ipynb) is a working example of the notebook.
**Notebook**: The *New* menu in the notebook should show an option for an Cairo notebook.
**Console frontends**: To use it with the console frontends, add ``--kernel cairo`` to
their command line arguments.Running the kernel on notebook
--------------------------------1. Start the notebook
```
jupyter notebook
```2. Start cairo kernel via UI

Development
-------------------------------1. Clone & enter the repo.
```
git clone https://github.com/ankitchiplunkar/cairo-jupyter.git
```2. Install required libraries.
```
pip install -r requirements.txt
```3. Install the cairo-jupyter library locally:
```
pip install -e .
python -m cairo_kernel.install
```