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.

Files for cffi_magic, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size cffi_magic-0.0.9-py2.py3-none-any.whl (6.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size cffi_magic-0.0.9.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page