Skip to main content

A module that define a cffi magic for IPython

Project description

CFFI magic

Quick iteration of cffi in notebooks.

%%cffi int quint(int);
int quint(int n)
{
    return 5*n;
}

# quint(9) # 45

rust magic

If you have rust installed:

%%rust int double(int);

#[no_mangle]
pub extern fn double(x: i32) -> i32 {
    x*2
}

# double(6) # 12

Project details


Download files

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

Source Distribution

cffi_magic-0.0.9.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

cffi_magic-0.0.9-py2.py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 2 Python 3

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