Re:Jupyter C Kernel
by williamstein on Friday August 11, 2017 @10:14AM
(#14989834)
The %cython mode for Sage notebooks (which I wrote in I think 2008??) does precisely that by generating a random-named Python shared object libary and importing it into the runnig Python process after each evaluation. There's a similar (%%cython?) mode for Jupyter notebooks.
Re:Jupyter C Kernel
by dgfgfdagasdfgfa on Thursday August 10, 2017 @06:35PM
(#14984992)
If you protect it appropriately, you've basically re-implemented exec.
That might actually work relatively well for simple cases. But I imagine there would be a ton of problematic edge cases, considering that with C you can end up with all sorts of weird stuff.