Skip to content

Carreau/cffi_magic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

%%cffi cell magic for ipython.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages