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.6.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for cffi_magic-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca1f8914af4b1da2b140d3851396935ad8c23ea6b195c6a248114842897fc14 |
|
MD5 | de6f7f2127eeda459b5a94098293925e |
|
BLAKE2b-256 | 937a78f7358c57a2cfdec937e7736a90cc2b72e0190777418e0ac17cb7201b5d |