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 hashes
Filename, size cffi_magic-0.0.9.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page