3 ms·
Not everyone needs more than one language in the same notebook communicating between each other. But if required, then the cell magic system looks superior to m
by denfromufa 10y ago
Not everyone needs more than one language in the same notebook communicating between each other. But if required, then the cell magic system looks superior to me: have a look at %%fortran, %%cython, %%javascript, %%html, %%bash options. Also it is possible to switch kernels in the same notebook, but serialization of state between kernels is handled by user.
- spot 10y agowhat is superior about %%javascript? here are some examples of JS working in beaker (in addition to the above python/JS demo): https://pub.beakernotebook.com/publications/87a444cc-fb85-11e5-9870-6f83c54cb849?fullscreen=true https://pub.beakernotebook.com/publications/87a444cc-fb85-11... https://pub.beakernotebook.com/publications/797f99f2-fccd-11e5-bbc8-578792777361?fullscreen=true https://pub.beakernotebook.com/publications/797f99f2-fccd-11... https://pub.beakernotebook.com/publications/afa0f71c-4aaf-11e6-b821-db4e457c4d14 https://pub.beakernotebook.com/publications/afa0f71c-4aaf-11...
- jonathanpoulter 10y agoCell magics just seem like one possible method of choosing which language to use, a menu such as what beaker uses seems alright too. I was setting up cling (the C++ kernel) today and I gave up at realising that the interpreter is spun up in a subprocess, rather than a kernel persisted across cells. Without cross cell support, mixing languages is a limited feature of jupyter.